ref: bf24176be59d2e8d1e36e33527747e7eb0ce23d8
parent: d91eebda1c2eb722eeb63fce27fbbf243a701cf0
author: Werner Lemberg <[email protected]>
date: Fri Jan 26 11:08:49 EST 2007
formatting
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,19 @@
2007-01-25 David Turner <[email protected]>
- * src/autofit/afhints.h, src/autofit/afhints.c, src/autofit/aftypes.h,
- src/autofit/afwarp.c: light auto-hinting, improve glyph advance widths
- and ressurect normal/full hinting to its normal quality
+ For light auto-hinting, improve glyph advance widths and resurrect
+ normal/full hinting to its normal quality.
+
+ * src/autofit/afhints.h (AF_GlyphHintsRec): New members `xmin_delta'
+ and `xmax_delta'.
+ * src/autofit/afhints.c (af_glyph_hints_reload): Reset `xmin_delta'
+ and `xmax_delta'.
+
+ * src/autofit/afloader.c (af_loader_load_g) <AF_USE_WARPER>: Replace
+ preprocessor conditional with if-clause, handling both light and
+ normal mode.
+
+ * src/autofit/afwarp.c (AF_WarpScore): Fine-tune again.
+ (af_warper_compute): Handle `xmin_delta' and `xmax_delta'.
2007-01-25 Werner Lemberg <[email protected]>
--- a/src/autofit/afhints.h
+++ b/src/autofit/afhints.h
@@ -4,7 +4,7 @@
/* */
/* Auto-fitter hinting routines (specification). */
/* */
-/* Copyright 2003, 2004, 2005, 2006 by */
+/* Copyright 2003, 2004, 2005, 2006, 2007 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
--- a/src/autofit/afloader.c
+++ b/src/autofit/afloader.c
@@ -4,7 +4,7 @@
/* */
/* Auto-fitter glyph loading routines (body). */
/* */
-/* Copyright 2003, 2004, 2005, 2006 by */
+/* Copyright 2003, 2004, 2005, 2006, 2007 by */
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */
/* This file is part of the FreeType project, and may only be used, */
--- a/src/autofit/afwarp.c
+++ b/src/autofit/afwarp.c
@@ -318,8 +318,11 @@
FT_Fixed best_scale = warper->best_scale;
FT_Pos best_delta = warper->best_delta;
- hints->xmin_delta = FT_MulFix( X1, best_scale-org_scale ) + best_delta;
- hints->xmax_delta = FT_MulFix( X2, best_scale-org_scale ) + best_delta;
+
+ hints->xmin_delta = FT_MulFix( X1, best_scale - org_scale )
+ + best_delta;
+ hints->xmax_delta = FT_MulFix( X2, best_scale - org_scale )
+ + best_delta;
*a_scale = best_scale;
*a_delta = best_delta;