diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-27 23:12:24 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-08-28 18:07:01 +0930 |
commit | fea24631076f74a3202ba0233be85588ae28db36 (patch) | |
tree | 1df67721f194ad6f161d5d63ddd146d05a0d0b68 /meson.build | |
parent | 5e76dd7a5c0585515eeef5099f12b273c94d3b0f (diff) | |
download | cairo-fea24631076f74a3202ba0233be85588ae28db36.tar.gz |
Support color fonts that use the foreground color
COLR fonts can have a layer with the same color as the current text
color. This change passes the current color (if solid) through to
the font backend where it can be used to render color fonts.
scaled_glyph_lookup checks if the foreground color has changed (for
glyph that require it) and requests a new color surface if required.
This also fixes a bug where scaled_glyph_lookup would always request a
color surface for glyphs for glyphs in color fonts that do not have
color.
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 7a0506712..6236d743b 100644 --- a/meson.build +++ b/meson.build @@ -330,6 +330,7 @@ if freetype_dep.found() 'FT_Library_SetLcdFilter', 'FT_Get_Var_Design_Coordinates', 'FT_Done_MM_Var', + 'FT_Palette_Set_Foreground_Color', ] if freetype_dep.type_name() == 'internal' |