formatting
This commit is contained in:
parent
d91eebda1c
commit
bf24176be5
17
ChangeLog
17
ChangeLog
|
@ -1,8 +1,19 @@
|
|||
2007-01-25 David Turner <david@freetype.org>
|
||||
|
||||
* 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 <wl@gnu.org>
|
||||
|
||||
|
|
|
@ -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, */
|
||||
|
|
|
@ -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, */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue