This commit is contained in:
Werner Lemberg 2019-02-16 07:05:24 +01:00
parent b66d6a9112
commit 29b302ad36
1 changed files with 9 additions and 7 deletions

View File

@ -2,10 +2,11 @@
[truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics. [truetype] Apply MVAR hasc, hdsc and hlgp metrics to current FT_Face metrics.
Instead of setting typo or win metrics as the new FT_Face metrics Instead of setting typo or win metrics as the new `FT_Face' metrics
indiscriminately, apply only typo deltas to the currently active FT_Face indiscriminately, apply only typo deltas to the currently active
metrics. This prevents line height differences when e.g. the default `FT_Face' metrics. This prevents line height differences when the
outlines were used as the regular face and instances for everything else. default outlines were used as the regular face and instances for
everything else, for example.
* src/truetype/ttgxvar.c (tt_apply_mvar): Implement. * src/truetype/ttgxvar.c (tt_apply_mvar): Implement.
@ -13,9 +14,10 @@
[sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set. [sfnt] Use typo metrics if OS/2 fsSelection USE_TYPO_METRICS bit is set.
If the OS/2 table exists and fsSelection bit 7 (USE_TYPO_METRICS) is set, If the `OS/2' table exists and `fsSelection' bit 7
use the sTypo* set of values to compute the FT_Face's ascender, descender (USE_TYPO_METRICS) is set, use the `sTypo*' set of values to compute
and height. Otherwise, fall back to old behavior. the `FT_Face's ascender, descender, and height. Otherwise, fall
back to old behavior.
* src/sfnt/sfobjs.c (sfnt_load_face): Implement. * src/sfnt/sfobjs.c (sfnt_load_face): Implement.