diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 15:10:06 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 15:39:30 +0200 |
commit | 9915a386ea1dab21c5bbd4a0c8012dd13dbda301 (patch) | |
tree | 872ba59767d5eb146bffd17deb800511525c6129 /pdf/pdf_font.c | |
parent | 5526e501b4447d6cbc6ed868a3c182dba22c1f5d (diff) | |
download | mupdf-9915a386ea1dab21c5bbd4a0c8012dd13dbda301.tar.xz |
Various patches from SumatraPDF.
Diffstat (limited to 'pdf/pdf_font.c')
-rw-r--r-- | pdf/pdf_font.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pdf/pdf_font.c b/pdf/pdf_font.c index 448ab330..2eb2e998 100644 --- a/pdf/pdf_font.c +++ b/pdf/pdf_font.c @@ -102,6 +102,11 @@ static int ft_char_index(FT_Face face, int cid) int gid = FT_Get_Char_Index(face, cid); if (gid == 0) gid = FT_Get_Char_Index(face, 0xf000 + cid); + + /* some chinese fonts only ship the similarly looking 0x2026 */ + if (gid == 0 && cid == 0x22ef) + gid = FT_Get_Char_Index(face, 0x2026); + return gid; } |