diff options
| author | Po Lu | 2023-12-29 14:58:19 +0800 |
|---|---|---|
| committer | Po Lu | 2023-12-29 14:58:41 +0800 |
| commit | ea3d211f3f7ecc5b59d5affc1aed812a2ded62b0 (patch) | |
| tree | bd83822c8a517b4ed6aca9e84cfd3d2e7486d9c3 /java | |
| parent | 714942b1c3767ee6c70a5644d6a4460dedbe4422 (diff) | |
| download | emacs-ea3d211f3f7ecc5b59d5affc1aed812a2ded62b0.tar.gz emacs-ea3d211f3f7ecc5b59d5affc1aed812a2ded62b0.zip | |
Obey USE_MY_METRICS in compound glyphs
* src/sfnt.c (struct sfnt_compound_glyph_context): New fields
holding the positions of both phantom points.
(sfnt_decompose_compound_glyph): New argument METRICS_RETURN;
return the metrics of components with USE_MY_METRICS within this
field.
(sfnt_decompose_glyph): New argument METRICS_RETURN, which
serves the same purpose.
(sfnt_build_glyph_outline): Apply glyph advance and origin
distortion to METRICS, and return the metrics as altered by
compound glyphs in there.
(sfnt_lookup_glyph_metrics): Trim away two unused parameters,
PIXEL_SIZE and HEAD, whose functionality has been superseeded by
sfnt_scale_metrics and the implicit scaling the interpreter
performs.
(sfnt_interpret_compound_glyph_2): Save phantom points within
fields provided to that end in CONTEXT.
(sfnt_interpret_compound_glyph_1): Save and source phantom
points for each glyph to and from the context.
(sfnt_test_get_metrics, main): Adjust tests correspondingly.
* src/sfnt.h: Update prototypes.
* src/sfntfont.c (sfntfont_get_metrics): Remove obsolete
parameters.
(sfntfont_get_glyph_outline): Don't change temp by the metrics
distortions, which is now the task of sfnt_decompose_glyph.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions