]> git.eshelyaron.com Git - emacs.git/commit
Round projs computed executing IP/ISECT instructions and improve IUP
authorPo Lu <luangruo@yahoo.com>
Sat, 20 Jan 2024 01:30:04 +0000 (09:30 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Jan 2024 09:07:25 +0000 (10:07 +0100)
commitf21be79431f84cf6820ddf92d2bb878ac8223a08
treedca1f97d7cb8b350bdf481348e0a90470b6ea0fb
parent545a729c6cce9e9a2f7e6af7a137d79bd5b8f0aa
Round projs computed executing IP/ISECT instructions and improve IUP

* src/sfnt.c (sfnt_multiply_divide_rounded): New function.
(sfnt_multiply_divide_signed): Always round values, as fonts
which rely on IP to move points in concert with prior motion and
subsequently round such points with MDAP are sensitive to minor
deviations in the behavior of the former instruction.
(load_unscaled): New macro.
(IUP_SINGLE_PAIR, sfnt_interpret_iup_1): Compute ratio w/
unscaled points if possible.

(cherry picked from commit b3e4fbe867f96a28c5dc9db19fcad2af5b4a4b7e)
src/sfnt.c