[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
`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
- Re: [ft-devel] color framework, (continued)
- Re: [ft-devel] color framework, Werner LEMBERG, 2018/12/18
- Re: [ft-devel] color framework, armin, 2018/12/18
- Re: [ft-devel] color framework, Werner LEMBERG, 2018/12/18
- Re: [ft-devel] [SPAM] Re: color framework, armin, 2018/12/18
- Re: [ft-devel] [SPAM] Re: color framework, Werner LEMBERG, 2018/12/18
- Re: [ft-devel] color framework, Behdad Esfahbod, 2018/12/19
- Re: [ft-devel] color framework,
Werner LEMBERG <=
- Re: [ft-devel] color framework, Alexei Podtelezhnikov, 2018/12/18
- Re: [ft-devel] color framework, Werner LEMBERG, 2018/12/19
- Re: [ft-devel] color framework, Alexei Podtelezhnikov, 2018/12/19
- Re: [ft-devel] color framework, Behdad Esfahbod, 2018/12/19
- Re: [ft-devel] color framework, Alexei Podtelezhnikov, 2018/12/19
- Re: [ft-devel] color framework, Behdad Esfahbod, 2018/12/19
- Re: [ft-devel] color framework, Alexei Podtelezhnikov, 2018/12/19
- Re: [ft-devel] color framework, Werner LEMBERG, 2018/12/13