mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 23:11:04 +01:00
[ot-font] Fix order of COLR vs VARC extents
COLR can reference VARC, not the other way around.
This commit is contained in:
1 parent
01793d3eaf
commit
4fc84b0e99
1 file changed
+3
-3
+3
-3
@@ -412,15 +412,15 @@ hb_ot_get_glyph_extents (hb_font_t *font,
|
||||
const hb_ot_font_t *ot_font = (const hb_ot_font_t *) font_data;
|
||||
const hb_ot_face_t *ot_face = ot_font->ot_face;
|
||||
|
||||
#ifndef HB_NO_VAR_COMPOSITES
|
||||
if (ot_face->VARC->get_extents (font, glyph, extents)) return true;
|
||||
#endif
|
||||
#if !defined(HB_NO_OT_FONT_BITMAP) && !defined(HB_NO_COLOR)
|
||||
if (ot_face->sbix->get_extents (font, glyph, extents)) return true;
|
||||
if (ot_face->CBDT->get_extents (font, glyph, extents)) return true;
|
||||
#endif
|
||||
#if !defined(HB_NO_COLOR) && !defined(HB_NO_PAINT)
|
||||
if (ot_face->COLR->get_extents (font, glyph, extents)) return true;
|
||||
#endif
|
||||
#ifndef HB_NO_VAR_COMPOSITES
|
||||
if (ot_face->VARC->get_extents (font, glyph, extents)) return true;
|
||||
#endif
|
||||
if (ot_face->glyf->get_extents (font, glyph, extents)) return true;
|
||||
#ifndef HB_NO_OT_FONT_CFF
|
||||
|
||||
Reference in new issue
Block a user