From 016e78b683fcac23ee02c5be40a6e11b545fec30 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 18 Feb 2025 19:49:48 -0700 Subject: [PATCH] [COLR] Micro-optimize --- src/OT/Color/COLR/COLR.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index d227768d5..72d05cf54 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -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;