summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-07-17 11:48:11 +0000
committerTor Andersson <tor@ghostscript.com>2010-07-17 11:48:11 +0000
commit5de6910dd12025185e15fb483d5047c399212423 (patch)
treebcc67d97e60b410f2cadc11249e224984376ea37 /fitz
parentde57fd12183a63235b46386c5be38e83212b635d (diff)
downloadmupdf-5de6910dd12025185e15fb483d5047c399212423.tar.xz
Minor edits.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/filt_pipeline.c4
-rw-r--r--fitz/res_font.c28
2 files changed, 16 insertions, 16 deletions
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;