[COLRv1] Fix comments

Fixes https://github.com/harfbuzz/harfbuzz/issues/5116
This commit is contained in:
Behdad Esfahbod 2025-03-07 15:18:28 -07:00
parent e27e7f1c7d
commit 4e5358a288
3 changed files with 3 additions and 3 deletions

View file

@ -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
),

View file

@ -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)
};

View file

@ -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);
}