[COLR] Micro-optimize

This commit is contained in:
Behdad Esfahbod 2025-02-18 19:49:48 -07:00
parent e6eec3cc14
commit 016e78b683

View file

@ -101,9 +101,7 @@ public:
if (!funcs->custom_palette_color (data, color_index, &color))
{
unsigned int clen = 1;
hb_face_t *face = hb_font_get_face (font);
hb_ot_color_palette_get_colors (face, palette_index, color_index, &clen, &color);
hb_ot_color_palette_get_colors (font->face, palette_index, color_index, &clen, &color);
}
*is_foreground = false;