Permalink
Browse files

need to build type3 to test that part. Added vwidth undo save/load.

Tested with MTLc3m from the Android platform.
  • Loading branch information...
1 parent 4884bfa commit 4a7b5f693f071214c05e9c31538e0d61e69f1e6b @monkeyiq committed Aug 4, 2012
Showing with 10 additions and 8 deletions.
  1. +10 −8 fontforge/sfd.c
View
@@ -987,9 +987,9 @@ static void SFDDumpUndo(FILE *sfd,SplineChar *sc,Undoes *u, char* keyPrefix, int
#ifdef FONTFORGE_CONFIG_TYPE3
// SFDDumpBrush( sfd, &u->u.state.fill_brush );
// SFDDumpPen( sfd, &u->u.state.stroke_pen );
- fprintf(sfd, "DoFill: %d\n", u->u.state.dofill );
- fprintf(sfd, "DoStroke: %d\n", u->u.state.dostroke );
- fprintf(sfd, "FillFirst: %d\n", u->u.state.fillfirst );
+// fprintf(sfd, "DoFill: %d\n", u->u.state.dofill );
+// fprintf(sfd, "DoStroke: %d\n", u->u.state.dostroke );
+// fprintf(sfd, "FillFirst: %d\n", u->u.state.fillfirst );
#endif
break;
@@ -1028,6 +1028,7 @@ static void SFDDumpUndo(FILE *sfd,SplineChar *sc,Undoes *u, char* keyPrefix, int
}
case ut_width:
+ case ut_vwidth:
{
fprintf(sfd, "Width: %d\n", u->u.width );
break;
@@ -3955,12 +3956,12 @@ static Undoes *SFDGetUndo( SplineFont *sf, FILE *sfd, SplineChar *sc,
u->u.state.splines = SFDGetSplineSet(sf,sfd,sc->layers[current_layer].order2);
}
-#ifdef FONTFORGE_CONFIG_TYPE3
+/* #ifdef FONTFORGE_CONFIG_TYPE3 */
- if ( !strmatch(tok,"DoFill:")) { getint(sfd,&i); u->u.state.dofill = i; }
- if ( !strmatch(tok,"DoStroke:")) { getint(sfd,&i); u->u.state.dostroke = i; }
- if ( !strmatch(tok,"FillFirst:")) { getint(sfd,&i); u->u.state.fillfirst = i; }
-#endif
+/* if ( !strmatch(tok,"DoFill:")) { getint(sfd,&i); u->u.state.dofill = i; } */
+/* if ( !strmatch(tok,"DoStroke:")) { getint(sfd,&i); u->u.state.dostroke = i; } */
+/* if ( !strmatch(tok,"FillFirst:")) { getint(sfd,&i); u->u.state.fillfirst = i; } */
+/* #endif */
break;
@@ -3998,6 +3999,7 @@ static Undoes *SFDGetUndo( SplineFont *sf, FILE *sfd, SplineChar *sc,
}
case ut_width:
+ case ut_vwidth:
{
if( !strmatch(tok,"Width:"))
{ getint(sfd,&i); u->u.width = i; }

0 comments on commit 4a7b5f6

Please sign in to comment.