Merge branch 'main' into HVF

This commit is contained in:
Behdad Esfahbod committed 2025-03-16 21:13:28 -06:00
commit cf29d9fe58
2 files changed
+2 -8

No files matched your search

+2 -2
View File
@@ -142,9 +142,9 @@ struct TrackData
unsigned j = count - 1;
// Find the two entries that track is between.
while (i + 1 < count && trackTable[i + 1].get_track_value () < track)
while (i + 1 < count && trackTable[i + 1].get_track_value () <= track)
i++;
while (j > 0 && trackTable[j - 1].get_track_value () > track)
while (j > 0 && trackTable[j - 1].get_track_value () >= track)
j--;
// Exact match.
-6
View File
@@ -87,12 +87,6 @@ _hb_coretext_shaper_font_data_create (hb_font_t *font)
unsigned int c = 1;
hb_ot_var_get_axis_infos (font->face, i, &c, &info);
// Somehow, CoreText doesn't like it when we DON'T set the default value axes.
// It behaves strangely for some fonts. So, let's set them all.
//if (font->design_coords[i] == info.default_value)
// continue;
float v = hb_clamp (font->design_coords[i], info.min_value, info.max_value);
CFNumberRef tag_number = CFNumberCreate (kCFAllocatorDefault, kCFNumberIntType, &info.tag);