summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-06-21 03:48:46 +0200
committerTor Andersson <tor@ghostscript.com>2010-06-21 03:48:46 +0200
commitbfa48cafeb06c903f2a6341a343231b239f3e5fc (patch)
tree5c205fd57f9f9f875621ae91f279f5033e1d0a17 /fitz/res_font.c
parent190e934523d20db62c9b8f92ad4dd1b403fab5cd (diff)
downloadmupdf-bfa48cafeb06c903f2a6341a343231b239f3e5fc.tar.xz
Fix ascender and descender and other metric calculations to use proper scaling values.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index e8cf76e3..933b732e 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -238,7 +238,7 @@ fz_renderftglyph(fz_font *font, int gid, fz_matrix trm)
if (fterr)
fz_warn("freetype failed to load glyph: %s", ft_errorstring(fterr));
- realw = ((FT_Face)font->ftface)->glyph->advance.x;
+ realw = ((FT_Face)font->ftface)->glyph->metrics.horiAdvance;
subw = font->widthtable[gid];
if (realw)
scale = (float) subw / realw;