mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[COLR] Micro-optimize
This commit is contained in:
parent
e6eec3cc14
commit
016e78b683
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue