mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 00:11:14 +01:00
Merge branch 'main' into HVF
This commit is contained in:
commit
cf29d9fe58
2 files changed
+2
-8
No files matched your search
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user