[font/fvar/avar] Increase axis coordinate normalization precision

Spec requires 16.16; we were doing 2.14. Fix up.
Now we do math in float, but do the 16.16 and final 2.14 rounding
as required by the spec.
This commit is contained in:
Behdad Esfahbod committed 2025-03-02 17:00:17 -07:00
1 parent bfcbb439cb
commit d7b15b0e21
5 files changed
+47 -47

No files matched your search

+1 -1
View File
@@ -709,7 +709,7 @@ test_hb_draw_font_kit_variations_tests (void)
"C436,229 405,295 271,349L247,359C160,393 119,439 119,506"
"C119,592 178,637 262,637C311,637 346,626 390,585L348,629L373,535"
"C380,510 394,503 408,503C424,503 434,510 437,526C418,614 348,665 259,665"
"C161,665 78,606 78,500C78,414 128,361 224,321L261,305C367,259 395,217 395,152"
"C161,665 78,606 78,500C78,414 128,361 224,320L261,305C367,259 395,217 395,152"
"C395,65 334,15 246,15ZM267,331L267,759L240,759L240,331L267,331ZM240,-115"
"L267,-115L267,331L240,331L240,-115Z";
g_assert_cmpmem (str, draw_data.consumed, expected, sizeof (expected) - 1);