freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] New `ftcolor.h' draft


From: Werner LEMBERG
Subject: Re: [ft-devel] New `ftcolor.h' draft
Date: Thu, 07 Jun 2018 12:28:12 +0200 (CEST)

> I would also suggest having a look at Cairo.  I remember getting
> really confused about converting freetype bitmaps to cairo drawing
> surface a while ago, although I resolved all the issues in the end.
> If I remember correctly, the issues are:
> 
> - freetype's bitmaps are always in the same order, regardless of
>   host-endianness. Cairo bitmaps are in host-endianness.  So
>   bytes/bits need to be swapped between platforms from one to the
>   other depending on the host endianness.

Nothing that I could change in the forthcoming color code.

> BTW, Cairo RGBA values have the alpha channel in the higher
> byte. i.e. it is 0xAABBGGRR, I think.

Well, BGRA is given in the OpenType specs...


    Werner



reply via email to

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