[cairo] Color fonts
Adrian Johnson
ajohnson at redneon.com
Tue Aug 15 11:11:52 UTC 2017
On 15/08/17 09:31, Matthias Clasen wrote:
> On Sun, Aug 13, 2017 at 5:59 PM, Behdad Esfahbod <behdad at behdad.org
> <mailto:behdad at behdad.org>> wrote:
>
>
>
>
> Also, the current implementation has a regression. If a font
> contains
> any color glyphs, every glyph in the font will be rendered as an
> image
> instead of show_glyphs.
>
>
> Does it? It's not supposed to be that way.
>
>
> The code is certainly trying to do the right thing:
> composite_color_glyphs is skipping clusters and glyphs
> which dont't have CAIRO_SCALED_GLYPH_INFO_COLOR_SURFACE set, and falls
> through to the
> show_glyphs codepath in that case.
False alarm. It turns out the font I was testing with has a color image
defined for every glyph including black colored glyphs which shouldn't
need an image.
More information about the cairo
mailing list