diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-03-02 00:09:56 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-03-02 00:10:12 +0100 |
commit | 9c7536238c872ca3b4d7ab864c1ee9aef039501d (patch) | |
tree | 94a68a2c4c38bd96a1c9817d32c9718b1f73c9dc | |
parent | 3fe81c6eadc24068e8bbb3d79ae38beea34d7d6f (diff) | |
download | mupdf-9c7536238c872ca3b4d7ab864c1ee9aef039501d.tar.xz |
Fix mask flags to FT_Get_Advance in ft_width.
-rw-r--r-- | source/pdf/pdf-font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/pdf/pdf-font.c b/source/pdf/pdf-font.c index e2f37cbd..01274389 100644 --- a/source/pdf/pdf-font.c +++ b/source/pdf/pdf-font.c @@ -182,10 +182,10 @@ pdf_font_cid_to_gid(fz_context *ctx, pdf_font_desc *fontdesc, int cid) static int ft_width(fz_context *ctx, pdf_font_desc *fontdesc, int cid) { - int mask = FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP | FT_LOAD_IGNORE_TRANSFORM; + int mask = FT_LOAD_NO_SCALE | FT_LOAD_NO_HINTING | FT_LOAD_NO_BITMAP | FT_LOAD_IGNORE_TRANSFORM; int gid = ft_cid_to_gid(fontdesc, cid); - int fterr; FT_Fixed adv; + int fterr; fterr = FT_Get_Advance(fontdesc->font->ft_face, gid, mask, &adv); if (fterr) |