diff options
author | Tor Andersson <tor@ghostscript.com> | 2011-02-23 11:25:51 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2011-02-23 11:25:51 +0000 |
commit | ff02027edf3aa04dbf9d57a3778025be2640b09d (patch) | |
tree | 5228f84438980d06e60b697f6cfdac5bce9bc576 | |
parent | 17871b890ac7c8ae4428d8bcccc383fc9a59db3c (diff) | |
download | mupdf-ff02027edf3aa04dbf9d57a3778025be2640b09d.tar.xz |
Use FT_IS_TRICKY to check for DynaLab fonts that need forced hinting.
-rw-r--r-- | mupdf/pdf_font.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mupdf/pdf_font.c b/mupdf/pdf_font.c index cd080ee6..03b02096 100644 --- a/mupdf/pdf_font.c +++ b/mupdf/pdf_font.c @@ -602,6 +602,10 @@ loadcidfont(pdf_fontdesc **fontdescp, pdf_xref *xref, fz_obj *dict, fz_obj *enco else fz_setfontbbox(fontdesc->font, bbox.x0, bbox.y0, bbox.x1, bbox.y1); + /* Check for DynaLab fonts */ + if (FT_IS_TRICKY(face)) + fontdesc->font->fthint = 1; + /* Encoding */ error = fz_okay; |