]> git.eshelyaron.com Git - emacs.git/commit
Fix display of compound glyphs that employ simple transforms
authorPo Lu <luangruo@yahoo.com>
Wed, 16 Aug 2023 03:02:55 +0000 (11:02 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 16 Aug 2023 03:02:55 +0000 (11:02 +0800)
commit6dacf5bce4e55f216561c3f38561b5479f8ba640
treedd07e9ed013d9d6eb03659618159ba9e20afd2f9
parent612f25c24ff08b9343ec8897c8dbcfc02d9b0d07
Fix display of compound glyphs that employ simple transforms

* src/sfnt.c (sfnt_transform_coordinates): Always compute an
affine transform matrix except if no scale is provided at all.
Unconditionally apply x_off and y_off.
(sfnt_decompose_compound_glyph): Delete arguments OF_X and
OFF_Y.  Apply component offsets after writing simple glyph
contours.
(sfnt_decompose_glyph): Modify for new calling convention.
(sfnt_transform_f26dot6): Modify analogously to
sfnt_decompose_compound_glyph.  Also correct anchor offset
computation to scale the unscaled component anchor coordinates
by the interpreter scale.
(sfnt_interpret_compound_glyph_1): Also modify for new calling
convention.
* src/sfnt.h (struct sfnt_compound_glyph_component): <u>: Make
scale fields signed.
src/sfnt.c
src/sfnt.h