freetype2/src/autofit
Tatsuyuki Ishi 0d5f1dd37c [autofit] Fix double division in stem darkening.
The old code used to divide the darkening amount by em_ratio twice,
leading to unnecessarily bold stems on certain fonts with higher
units per em (e.g. Inter). This patch fixes it.

The return value of af_loader_compute_darkening was also changed to
use 16.16 fixed point to get rid of a redundant truncation operation.
This should slightly improve the precision, although it's still
bottlenecked by the emboldening function, which uses 26.6 fixed point.

* src/autofit/afloader.[ch]
(af_loader_compute_darkening): Return FT_Fixed.
(af_loader_embolden_glyph_in_slot): Revise calculations.
2020-12-18 22:10:30 -05:00
..
afangles.c Update all copyright notices. 2020-01-19 17:05:19 +01:00
afangles.h [GSoC] src/*.*: Convert block comments to `light' style. 2018-06-03 09:08:41 +02:00
afblue.c [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
afblue.cin Update all copyright notices. 2020-01-19 17:05:19 +01:00
afblue.dat [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
afblue.h [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
afblue.hin Update all copyright notices. 2020-01-19 17:05:19 +01:00
afcjk.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
afcjk.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afcover.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afdummy.c Update all copyright notices. 2020-01-19 17:05:19 +01:00
afdummy.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
aferrors.h Make macros for header file names optional. 2020-06-08 13:31:55 +02:00
afglobal.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
afglobal.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afhints.c Make macros for header file names optional. 2020-06-08 13:31:55 +02:00
afhints.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afindic.c Update all copyright notices. 2020-01-19 17:05:19 +01:00
afindic.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
aflatin.c * src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-07 10:29:24 +01:00
aflatin.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
aflatin2.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
aflatin2.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afloader.c [autofit] Fix double division in stem darkening. 2020-12-18 22:10:30 -05:00
afloader.h [autofit] Fix double division in stem darkening. 2020-12-18 22:10:30 -05:00
afmodule.c Downgrade property tracing. 2020-11-20 14:54:35 -05:00
afmodule.h Fix clang warnings. 2020-07-07 16:58:14 +02:00
afranges.c [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
afranges.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afscript.h [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
afshaper.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
afshaper.h Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
afstyles.h [autofit] Synchronize with ttfautohint. 2020-09-25 17:44:00 +02:00
aftypes.h Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
afwarp.c * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
afwarp.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
afwrtsys.h Update all copyright notices. 2020-01-19 17:05:19 +01:00
autofit.c Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
module.mk Update all copyright notices. 2020-01-19 17:05:19 +01:00
rules.mk Update all copyright notices. 2020-01-19 17:05:19 +01:00