diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-17 11:48:11 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-17 11:48:11 +0000 |
commit | 5de6910dd12025185e15fb483d5047c399212423 (patch) | |
tree | bcc67d97e60b410f2cadc11249e224984376ea37 /fitz/res_font.c | |
parent | de57fd12183a63235b46386c5be38e83212b635d (diff) | |
download | mupdf-5de6910dd12025185e15fb483d5047c399212423.tar.xz |
Minor edits.
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r-- | fitz/res_font.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c index 8dc06902..099a849f 100644 --- a/fitz/res_font.c +++ b/fitz/res_font.c @@ -249,12 +249,13 @@ fz_renderftglyph(fz_font *font, int gid, fz_matrix trm) trm = fz_concat(fz_scale(scale, 1), trm); } - /* freetype mutilates complex glyphs if they are loaded - * with FT_Set_Char_Size 1.0. it rounds the coordinates - * before applying transformation. to get more precision in - * freetype, we shift part of the scale in the matrix - * into FT_Set_Char_Size instead - */ + /* + Freetype mutilates complex glyphs if they are loaded + with FT_Set_Char_Size 1.0. it rounds the coordinates + before applying transformation. to get more precision in + freetype, we shift part of the scale in the matrix + into FT_Set_Char_Size instead + */ m.xx = trm.a * 64; /* should be 65536 */ m.yx = trm.b * 64; @@ -270,13 +271,14 @@ fz_renderftglyph(fz_font *font, int gid, fz_matrix trm) if (font->fthint) { - /* Enable hinting, but keep the huge char size so that - * it is hinted for a character. This will in effect nullify - * the effect of grid fitting. This form of hinting should - * only be used for DynaLab and similar tricky TrueType fonts, - * so that we get the correct outline shape. - */ -#ifdef USE_HINTING + /* + Enable hinting, but keep the huge char size so that + it is hinted for a character. This will in effect nullify + the effect of grid fitting. This form of hinting should + only be used for DynaLab and similar tricky TrueType fonts, + so that we get the correct outline shape. + */ +#ifdef GRIDFIT /* If you really want grid fitting, enable this code. */ float scale = fz_matrixexpansion(trm); m.xx = trm.a * 65536 / scale; |