mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[ft-colr] Adjust for FreeType master color-stop change
Part of https://github.com/harfbuzz/harfbuzz/issues/4013
This commit is contained in:
1 parent
1eb5445e75
commit
5ea5aacda9
1 file changed
+6
-1
+6
-1
@@ -141,7 +141,12 @@ _hb_ft_color_line_get_color_stops (hb_color_line_t *color_line,
|
||||
&stop,
|
||||
&cl->color_stop_iterator))
|
||||
{
|
||||
color_stops->offset = stop.stop_offset / 16384.f;
|
||||
// https://github.com/harfbuzz/harfbuzz/issues/4013
|
||||
if (sizeof stop.stop_offset == 2)
|
||||
color_stops->offset = stop.stop_offset / 16384.f;
|
||||
else
|
||||
color_stops->offset = stop.stop_offset / 65536.f;
|
||||
|
||||
color_stops->is_foreground = stop.color.palette_index == 0xFFFF;
|
||||
if (color_stops->is_foreground)
|
||||
color_stops->color = HB_COLOR (hb_color_get_blue (c->foreground),
|
||||
|
||||
Reference in new issue
Block a user