From 5de6910dd12025185e15fb483d5047c399212423 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 17 Jul 2010 11:48:11 +0000 Subject: Minor edits. --- fitz/filt_pipeline.c | 4 +--- fitz/res_font.c | 28 +++++++++++++++------------- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'fitz') diff --git a/fitz/filt_pipeline.c b/fitz/filt_pipeline.c index 986ca4e7..7df89d0e 100644 --- a/fitz/filt_pipeline.c +++ b/fitz/filt_pipeline.c @@ -116,9 +116,7 @@ tail: else if (e == fz_iodone) { - /* Make sure that the head is also done. - * It may still contain end-of-data markers or garbage. - */ + /* The head may still contain end-of-data markers or garbage */ e = fz_process(p->head, in, p->buffer); if (e != fz_iodone) fz_catch(e, "head filter not done"); 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; -- cgit v1.2.3