diff options
author | Igor Melichev <igor.melichev@artifex.com> | 2003-09-02 10:17:23 +0000 |
---|---|---|
committer | Igor Melichev <igor.melichev@artifex.com> | 2003-09-02 10:17:23 +0000 |
commit | 82c527098888b5108fdf7558cc3a7f0de9f93f4d (patch) | |
tree | 1021a53e391bda77366658fc299257afdfc72897 /gs/src/gstype2.c | |
parent | 3240b8d2dd530b3b85af4ea8b57cd346f6428f8a (diff) |
Removing rudiments of the old hinter (step 1).
DETAILS :
This patch encloses rudiments of the old hinter with "#ifdef KEEP_OLD_HINTER",
where KEEP_OLD_HINTER is undefined.
This change is algorithmically equivalent,
because the new hinter worked instead the old one. Only exception is
the change to gstype1.c ln 370 : the condition t1_hinter__is_x_fitting(h)
is waeker than the old pcis->fh.use_x_hints, because
the new hinter applies an X-grid fitting with a slightly sloped transforms.
The change to gdevpsfx.c define local arrays for storing hints.
The old code used the old hinter structures, which appear too heavy
for the need of gdevpsfx.c .
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@4175 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/src/gstype2.c')
-rw-r--r-- | gs/src/gstype2.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/gs/src/gstype2.c b/gs/src/gstype2.c index db7f6d2d0..172b0bb1f 100644 --- a/gs/src/gstype2.c +++ b/gs/src/gstype2.c @@ -428,7 +428,9 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd, } cnext; case c2_hstemhm: +#ifdef KEEP_OLD_HINTER pcis->have_hintmask = true; +#endif hstem:check_first_operator(!((csp - cstack) & 1)); { fixed x = 0; @@ -451,7 +453,9 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd, * it appears that the same holds true for cntrmask. */ case c2_cntrmask: +#ifdef KEEP_OLD_HINTER pcis->have_hintmask = true; +#endif check_first_operator(!((csp - cstack) & 1)); type2_vstem(pcis, csp, cstack); /* @@ -465,8 +469,10 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd, byte mask[max_total_stem_hints / 8]; int i; - if_debug3('1', "[1]mask[%d:%dh,%dv]", pcis->num_hints, - pcis->hstem_hints.count, pcis->vstem_hints.count); +#ifdef KEEP_OLD_HINTER + if_debug3('1', "[1]mask[%d:%dh,%dv]", pcis->num_hints, + pcis->hstem_hints.count, pcis->vstem_hints.count); +#endif for (i = 0; i < pcis->num_hints; ++cip, i += 8) { charstring_next(*cip, state, mask[i >> 3], encrypted); if_debug1('1', " 0x%02x", mask[i >> 3]); @@ -486,7 +492,9 @@ gs_type2_interpret(gs_type1_state * pcis, const gs_glyph_data_t *pgd, } break; case c2_vstemhm: +#ifdef KEEP_OLD_HINTER pcis->have_hintmask = true; +#endif vstem:check_first_operator(!((csp - cstack) & 1)); type2_vstem(pcis, csp, cstack); cnext; |