>>> > 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
`rendering'...

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
FT_RENDER_MODE_NORMAL.

> 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.


    Werner

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to