]> git.eshelyaron.com Git - emacs.git/commit
Apply TTF advance width rounding to uninstructed glyphs
authorPo Lu <luangruo@yahoo.com>
Mon, 25 Dec 2023 07:38:15 +0000 (15:38 +0800)
committerEshel Yaron <me@eshelyaron.com>
Mon, 25 Dec 2023 11:54:14 +0000 (12:54 +0100)
commit46a6b6d77467ba31d953708f69c985ac21ae001e
tree45b073eb9a2d32355e8d4787d47bcddeec669d2f
parent96b8bbb9a6453c9c19de7c991e222cea2542af90
Apply TTF advance width rounding to uninstructed glyphs

* src/sfnt.c (sfnt_scale_metrics):

* src/sfntfont.c (sfntfont_get_glyph_outline): Round advance and
floor lbearing scaling glyph metrics.
(sfntfont_measure_pcm): Don't round or truncate metrics which
have already been.

(cherry picked from commit 1be132731d31c3752b275735e5dbe1f60d1988c3)
src/sfnt.c
src/sfntfont.c