[Top][All Lists]

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

Re: [ft-devel] color framework

From: Werner LEMBERG
Subject: Re: [ft-devel] color framework
Date: Tue, 18 Dec 2018 11:21:31 +0100 (CET)

>>> > As long as adding FT_LOAD_COLOR will get COLR/CPAL glyphs
>>> > rendered into the bitmap, cairo/Chrome will work fine and I have
>>> > no problem with that.
>> FT_LOAD_COLOR has been FreeType public API since 2013.
> FT_LOAD_COLOR used to be a loading flag only.

This depends on what you exactly mean with `loading' and

IMHO, your assumption is not correct: Assuming that the default
rendering mode of FreeType is always grayscale rendering
(FT_RENDER_MODE_NORMAL), this principle was already violated with the
introduction of FT_LOAD_COLOR for color bitmaps since you actually get
color bitmaps!  Theoretically, grayscale bitmaps should have been
returned by default.  For Joe User it is thus obvious that
FT_LOAD_COLOR automatically gives coloured outline glyphs even for

> The choice is between a hack and a proper implementation.

We need both, as I've tried to implement in `master': FT_LOAD_COLOR
should trigger a standard case with some default blending; for finer
color and blending control separate functions should be provided to
allow direct layer access.


reply via email to

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