diff --git a/src/hb-aat-layout-trak-table.hh b/src/hb-aat-layout-trak-table.hh index 508606037..24c212c2c 100644 --- a/src/hb-aat-layout-trak-table.hh +++ b/src/hb-aat-layout-trak-table.hh @@ -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. diff --git a/src/hb-coretext-shape.cc b/src/hb-coretext-shape.cc index 77a86fae8..cf30f872e 100644 --- a/src/hb-coretext-shape.cc +++ b/src/hb-coretext-shape.cc @@ -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);