From 4e5358a2885bf9db8196576d4cefe0877be1d545 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 7 Mar 2025 15:18:28 -0700 Subject: [PATCH] [COLRv1] Fix comments Fixes https://github.com/harfbuzz/harfbuzz/issues/5116 --- src/OT/Color/COLR/COLR.hh | 2 +- src/fontations/lib.rs | 2 +- src/hb-ft-colr.hh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OT/Color/COLR/COLR.hh b/src/OT/Color/COLR/COLR.hh index 6d454b711..ac9a881c8 100644 --- a/src/OT/Color/COLR/COLR.hh +++ b/src/OT/Color/COLR/COLR.hh @@ -95,7 +95,7 @@ public: font (font_), palette ( #ifndef HB_NO_COLOR - // https://github.com/harfbuzz/harfbuzz/issues/5112 + // https://github.com/harfbuzz/harfbuzz/issues/5116 font->face->table.CPAL->get_palette_colors (palette_ < font->face->table.CPAL->get_palette_count () ? palette_ : 0) #endif ), diff --git a/src/fontations/lib.rs b/src/fontations/lib.rs index 64c3f62e1..0d0fd6770 100644 --- a/src/fontations/lib.rs +++ b/src/fontations/lib.rs @@ -710,7 +710,7 @@ extern "C" fn _hb_fontations_paint_glyph( let start_index = if start_index.is_some() { start_index } else { - // https://github.com/harfbuzz/harfbuzz/issues/5112 + // https://github.com/harfbuzz/harfbuzz/issues/5116 cpal.color_record_indices().get(0 as usize) }; diff --git a/src/hb-ft-colr.hh b/src/hb-ft-colr.hh index e40b99087..986e20026 100644 --- a/src/hb-ft-colr.hh +++ b/src/hb-ft-colr.hh @@ -493,7 +493,7 @@ hb_ft_paint_glyph_colr (hb_font_t *font, (void) FT_Palette_Select(ft_face, palette_index, &palette); if (!palette) { - // https://github.com/harfbuzz/harfbuzz/issues/5112 + // https://github.com/harfbuzz/harfbuzz/issues/5116 (void) FT_Palette_Select(ft_face, 0, &palette); }