freetype2/src
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
..
autofit [autofit] Fix double division in stem darkening. 2020-12-18 22:10:30 -05:00
base */*: s/FT_LOGGING/FT_DEBUG_LOGGING/. 2020-12-07 10:27:42 +01:00
bdf * src/bdf/bdflib.c: Fix `-Wformat` warning. 2020-12-05 09:43:45 +01:00
bzip2 Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
cache Fix `-Wformat' compiler warnings. 2020-07-28 07:33:40 +02:00
cff * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
cid * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
dlg */*: s/FT_LOGGING/FT_DEBUG_LOGGING/. 2020-12-07 10:27:42 +01:00
gxvalid * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
gzip Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
lzw [build] Really fix multi and C++ builds. 2020-07-07 06:51:09 +02:00
otvalid * src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-07 10:29:24 +01:00
pcf * src/*: Don't use more than one '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-05 09:43:45 +01:00
pfr Fix `-Wformat' compiler warnings. 2020-07-28 07:33:40 +02:00
psaux * src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-07 10:29:24 +01:00
pshinter Fix `-Wformat' compiler warnings. 2020-07-28 07:33:40 +02:00
psnames Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00
raster Document changes to last release. 2020-10-10 12:48:18 +02:00
sfnt * src/*: More fixes for using a '\n' in `FT_TRACE` and `FT_ERROR`. 2020-12-07 10:29:24 +01:00
smooth [smooth] Don't set target in direct mode. 2020-08-28 23:08:42 -04:00
tools * src/tools/chktrcmp.py (trace_use_pat): Update to current use. 2020-12-01 08:48:28 +01:00
truetype [truetype] Fix incremental metrics (#59503). 2020-12-16 06:08:54 +01:00
type1 [cff,cid,type1] Demote old engine for lack of CFF2. 2020-11-20 15:24:42 -05:00
type42 [type42] Pacify static analysis tools (#59682). 2020-12-14 16:11:06 +01:00
winfonts Remove redundant inclusion of `ft2build.h'. 2020-06-13 21:15:45 +02:00