summaryrefslogtreecommitdiff
path: root/fontforge/fontinfo.c
diff options
context:
space:
mode:
authorGeorge Williams <pfaedit@users.sourceforge.net>2011-03-23 21:04:41 -0700
committerGeorge Williams <pfaedit@users.sourceforge.net>2011-03-23 21:04:41 -0700
commitf32fb901d6a04b0829660cc4db72d8bd6be75402 (patch)
tree5ddd630defa038b48c601a3687f2e6afb860ddf5 /fontforge/fontinfo.c
parent5343046c12667623cd496a75698577a820428781 (diff)
Vern points out that I had the symetrical smoothing flag bits for gasp rather confused.
Diffstat (limited to 'fontforge/fontinfo.c')
-rw-r--r--fontforge/fontinfo.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/fontforge/fontinfo.c b/fontforge/fontinfo.c
index 771b60e3..c6b57767 100644
--- a/fontforge/fontinfo.c
+++ b/fontforge/fontinfo.c
@@ -1254,10 +1254,10 @@ static GTextInfo gfsymsmooth[] = {
{ NULL }};
static struct col_init gaspci[] = {
{ me_int , NULL, NULL, NULL, N_("Gasp|For Pixels Per EM <= Value") },
- { me_enum, NULL, gridfit, NULL, N_("Gasp|Grid Fit") },
- { me_enum, NULL, antialias, NULL, N_("Gasp|Anti-Alias") },
- { me_enum, NULL, symsmooth, NULL, N_("Gasp|Symmetric Smoothing") },
- { me_enum, NULL, gfsymsmooth, NULL, N_("Gasp|Grid Fit w/ Sym Smooth") }
+ { me_enum, NULL, gridfit, NULL, N_("Gasp|Grid Fit") }, /* 1 */
+ { me_enum, NULL, antialias, NULL, N_("Gasp|Anti-Alias") }, /* 2 */
+ { me_enum, NULL, symsmooth, NULL, N_("Gasp|Symmetric Smoothing") }, /* 8 */
+ { me_enum, NULL, gfsymsmooth, NULL, N_("Gasp|Grid Fit w/ Sym Smooth") } /* 4 */
};
static GTextInfo splineorder[] = {
{ (unichar_t *) N_("Cubic"), NULL, 0, 0, (void *) 0, NULL, 0, 0, 0, 0, 1, 0, 1},
@@ -3389,8 +3389,8 @@ static void GaspMatrixInit(struct matrixinit *mi,struct gfi_data *d) {
md[5*i ].u.md_ival = sf->gasp[i].ppem;
md[5*i+1].u.md_ival = (sf->gasp[i].flags&1)?1:0;
md[5*i+2].u.md_ival = (sf->gasp[i].flags&2)?1:0;
- md[5*i+3].u.md_ival = (sf->gasp[i].flags&4)?1:0;
- md[5*i+4].u.md_ival = (sf->gasp[i].flags&8)?1:0;
+ md[5*i+3].u.md_ival = (sf->gasp[i].flags&8)?1:0;
+ md[5*i+4].u.md_ival = (sf->gasp[i].flags&4)?1:0;
}
mi->initial_row_cnt = sf->gasp_cnt;
}
@@ -4287,8 +4287,8 @@ return(true);
else
sf->gasp[i].flags = gasp[5*i+1].u.md_ival |
(gasp[5*i+2].u.md_ival<<1) |
- (gasp[5*i+2].u.md_ival<<2) |
- (gasp[5*i+2].u.md_ival<<3);
+ (gasp[5*i+4].u.md_ival<<2) |
+ (gasp[5*i+3].u.md_ival<<3);
}
}
sf->head_optimized_for_cleartype = GGadgetIsChecked(GWidgetGetControl(gw,CID_HeadClearType));