Correct values of INSTCTRL flags tested
authorPo Lu <luangruo@yahoo.com>
Mon, 22 Jan 2024 07:29:18 +0000 (15:29 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 22 Jan 2024 08:02:05 +0000 (16:02 +0800)
commit05495bfa6c39816e210bf655c0cbd44ba6dfcc7c
treec63538976c84bdce7867970132730daa81c3ecf2
parent088afa7e2f08f4eb4e39aae5db4faa33857bf544
Correct values of INSTCTRL flags tested

* src/sfnt.c (sfnt_mul_f26dot6_round): New function.
(sfnt_mul_f26dot6_fixed): Replace by call to
sfnt_mul_fixed_round.
(MUL): Round result, as the Apple and MS scalers do.
(sfnt_interpret_control_value_program): The instruction control
flag which reverts CVT modifications is 2, not 4.
src/sfnt.c