[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft-devel] color framework

From: Alexei Podtelezhnikov
Subject: [ft-devel] color framework
Date: Tue, 11 Dec 2018 23:48:25 -0500

Hi all,

I have just pushed out a new branch called color. This is a framework
and renderer for color glyphs, which Werner and I discussed offline.
The basic idea is to supplement outlines with color information for
each contour so that consecutive contours of the same color can be
rendered as layers. A new FT_RENDER_MODE_BGRA is introduced to render
color glyphs if the color information is provided. A small
demonstration is implemented in ftstring (use color branch again).

The color array pointer takes place of the reseved "other" pointer in
FT_GlyphSlot. So this in binary compatible. FT_OutlineGlyphRec,
however, acquired a new field, this can, but very unlikely, break
binary compatibility.

The main motivation is a straightforward and familiar interface for
rendering CPAL/COLR fonts. Once the TrueType loader learns to combine
all layers into a single outline and fill color information, it is
good to go. Just load and render those with FT_RENDER_MODE_BGRA.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]