formatting

This commit is contained in:
Werner Lemberg 2007-01-26 16:08:49 +00:00
parent d91eebda1c
commit bf24176be5
4 changed files with 21 additions and 7 deletions

View File

@ -1,8 +1,19 @@
2007-01-25 David Turner <david@freetype.org> 2007-01-25 David Turner <david@freetype.org>
* src/autofit/afhints.h, src/autofit/afhints.c, src/autofit/aftypes.h, For light auto-hinting, improve glyph advance widths and resurrect
src/autofit/afwarp.c: light auto-hinting, improve glyph advance widths normal/full hinting to its normal quality.
and ressurect 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 <wl@gnu.org> 2007-01-25 Werner Lemberg <wl@gnu.org>

View File

@ -4,7 +4,7 @@
/* */ /* */
/* Auto-fitter hinting routines (specification). */ /* 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. */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */ /* */
/* This file is part of the FreeType project, and may only be used, */ /* This file is part of the FreeType project, and may only be used, */

View File

@ -4,7 +4,7 @@
/* */ /* */
/* Auto-fitter glyph loading routines (body). */ /* 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. */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */
/* */ /* */
/* This file is part of the FreeType project, and may only be used, */ /* This file is part of the FreeType project, and may only be used, */

View File

@ -318,8 +318,11 @@
FT_Fixed best_scale = warper->best_scale; FT_Fixed best_scale = warper->best_scale;
FT_Pos best_delta = warper->best_delta; 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_scale = best_scale;
*a_delta = best_delta; *a_delta = best_delta;