[cairo] [PATCH 0/6] cover glyph support

Adrian Johnson ajohnson at redneon.com
Sat Apr 9 09:56:28 UTC 2016


On 09/04/16 12:52, matthias.clasen at gmail.com wrote:
> From: Matthias Clasen <mclasen at redhat.com>
> 
> Its been almost three years since Behdad posted a quick sketch
> of how support for colored glyphs could look in cairo
> (https://github.com/behdad/cairo/commits/color-emoji).
> Over the last few days, I've spent some time on turning this
> into a more complete solution.
> 
> The patches in this series provide fully working support for
> colored glyphs in OpenType fonts for the image compositor and
> the xlib compositor, and should be mergable.
> 
> 
> Matthias Clasen (6):
>   Add support for color glyphs to cairo_scaled_glyph_t
>   Support loading color glyphs with freetype
>   Expose 'has color glyphs' as a scaled font property
>   Implement has_color_glyphs for freetype
>   Add color glyph support to the image compositor
>   Support color glyphs in the xlib compositor
> 
>  src/cairo-ft-font.c                |  75 ++++++++++---
>  src/cairo-image-compositor.c       | 220 +++++++++++++++++++++++++------------
>  src/cairo-scaled-font-private.h    |   3 +
>  src/cairo-scaled-font.c            |  30 +++++
>  src/cairo-xlib-render-compositor.c |  29 +++++
>  src/cairoint.h                     |  11 +-
>  6 files changed, 278 insertions(+), 90 deletions(-)
> 

We will need a test case. I suggest finding or creating a small font
with a single color glyph and include it in the test directory for the
test to use.



More information about the cairo mailing list