ref: 916838ca68b0069212b2690c53e12d58c6679333
parent: 53a1edd42bc497119be9d9f94a355a6658c71e69
author: Werner Lemberg <[email protected]>
date: Tue Feb 10 11:02:20 EST 2004
* src/cff/cffgload.c (cff_decoder_parse_charstrings) <cff_op_endchar>: Preserve glyph width before calling cff_operator_seac. * src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special first argument for `hintmask' and `cntrmask' operators also.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2003-02-09 Werner Lemberg <[email protected]>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings)
+ <cff_op_endchar>: Preserve glyph width before calling
+ cff_operator_seac.
+
+2003-02-09 Martin Muskens <[email protected]>
+
+ * src/cff/cffgload.c (cff_decoder_parse_charstrings): Handle special
+ first argument for `hintmask' and `cntrmask' operators also.
+
2003-02-08 Werner Lemberg <[email protected]>
* builds/unix/configure.in: Call AC_SUBST for `enable_shared',
--- a/src/cff/cffgload.c
+++ b/src/cff/cffgload.c
@@ -1108,7 +1108,7 @@
/* `glyph_width' to `nominal_width' plus number on the stack */
/* -- for either case. */
- FT_Int set_width_ok;
+ FT_Int set_width_ok;
switch ( op )
@@ -1123,6 +1123,8 @@
case cff_op_hstemhm:
case cff_op_vstemhm:
case cff_op_rmoveto:
+ case cff_op_hintmask:
+ case cff_op_cntrmask:
set_width_ok = num_args & 1;
break;
@@ -1744,6 +1746,10 @@
/* We are going to emulate the seac operator. */
if ( num_args == 4 )
{
+ /* Save glyph width so that the subglyphs don't overwrite it. */
+ FT_Pos glyph_width = decoder->glyph_width;
+
+
error = cff_operator_seac( decoder,
args[0],
args[1],
@@ -1750,6 +1756,8 @@
(FT_Int)( args[2] >> 16 ),
(FT_Int)( args[3] >> 16 ) );
args += 4;
+
+ decoder->glyph_width = glyph_width;
}
else
{