mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 22:41:27 +00:00
[COLRv1] Fix comments
Fixes https://github.com/harfbuzz/harfbuzz/issues/5116
This commit is contained in:
parent
e27e7f1c7d
commit
4e5358a288
3 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
),
|
||||
|
|
|
@ -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)
|
||||
};
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue