diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2014-07-11 12:05:45 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2014-07-11 12:05:45 -0400 |
commit | 9f67b924eb662f498f4e643ed740ce84640968f7 (patch) | |
tree | c79a17583162dc0bc8859e48425b764c9f3d03b8 /modules | |
parent | fe66e7b36331d031f1025dbe05db065334381fee (diff) | |
download | pango-9f67b924eb662f498f4e643ed740ce84640968f7.tar.gz |
Prevent HarfBuzz from using REPLACEMENT CHARACTER
Needed after this:
https://github.com/behdad/harfbuzz/commit/efe74214bbb68eaa3d7621e73869b5d58210107e
Diffstat (limited to 'modules')
-rw-r--r-- | modules/basic/basic-fc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/basic/basic-fc.c b/modules/basic/basic-fc.c index 1ceaeabe..93c4478f 100644 --- a/modules/basic/basic-fc.c +++ b/modules/basic/basic-fc.c @@ -128,6 +128,12 @@ pango_fc_hb_font_get_glyph (hb_font_t *font, void *font_data, return TRUE; *glyph = PANGO_GET_UNKNOWN_GLYPH (unicode); + + /* We draw our own invalid-Unicode shape, so prevent HarfBuzz + * from using REPLACEMENT CHARACTER. */ + if (unicode > 0x10FFFF) + return TRUE; + return FALSE; } |