freetype-devel
[Top][All Lists]
Advanced

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

Re: Blending non-color glyphs


From: Behdad Esfahbod
Subject: Re: Blending non-color glyphs
Date: Fri, 22 Nov 2019 16:57:02 -0500

Hi Werner,

On Thu, Nov 21, 2019 at 8:51 AM Werner LEMBERG <address@hidden> wrote:

Hello Behdad,

> I like to compose multiple glyphs in a bitmap without using any
> graphics library.  I found that FT_Bitmap_Blend() does exactly what
> I want except that if none of the glyphs are color, it still
> promotes the image to a color bitmap.
>
> Would be nice to have another version that would only upgrade to
> color if necessary.

could you provide a patch?

I will, after I figure it out.

Another oddity is that this function does NOT transfer directly if source is color bitmap.  It will flatten it to grayscale then blend that with provided foreground color.

I understand this was added to implement the MS COLR/CPAL stuff.  But can be made a lot more useful with the two changes I'm requesting now.


    Werner


--
behdad
http://behdad.org/

reply via email to

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