]> git.eshelyaron.com Git - emacs.git/commit
Consistently round glyph advances in the SFNT font backend
authorPo Lu <luangruo@yahoo.com>
Tue, 26 Dec 2023 06:07:58 +0000 (14:07 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 26 Dec 2023 06:10:57 +0000 (14:10 +0800)
commitcd91ecedcbdf03ae13f45cb173360b11f13a0bc0
treedaa4d9d65f6db42b8a6f924bd50b30132008ee16
parenta6ef458e3831001b0acad57cf8fa75b77a4aff3f
Consistently round glyph advances in the SFNT font backend

* src/sfnt.h (SFNT_ROUND_FIXED): New macro.

* src/sfntfont.c (sfntfont_get_glyph_outline): Don't apply
advance width distortion before the glyph is instructed or
decomposed.  Round advance width as measured between both
phantom points subsequent to instruction code execution.
(sfntfont_draw): Don't take the advance's ceiling when advancing
origin point.
src/sfnt.h
src/sfntfont.c