]> git.eshelyaron.com Git - emacs.git/commit
Improve rounding of projection vector versors
authorPo Lu <luangruo@yahoo.com>
Tue, 2 Jan 2024 04:26:57 +0000 (12:26 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Jan 2024 08:50:50 +0000 (09:50 +0100)
commitd4338bc9dafd9faba6ea97546693a8ddce02062a
treefe739014cb9bdf639f23fb43362891c7c90ed0fd
parent663b3fda2d5bc6dfa1e18a461a1cffe0e790acf6
Improve rounding of projection vector versors

* src/sfnt.c (sfnt_short_frac_dot): New function.
(sfnt_validate_gs): Guarantee dot product of freedom and
projection vectors are properly rounded.  If the final product
is short of 1/16th of a vector, reset it to an entire vector.

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