freetype-devel
[Top][All Lists]
Advanced

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

A question about FT_Pixel_Mode


From: Michael Wachs
Subject: A question about FT_Pixel_Mode
Date: Wed, 23 Jun 2021 08:51:57 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

Hello,

My goal:

I use the freetype library (version 2.10.1) to convert TTF fonts to a proprietary format.
I want to convert the fonts to different pixel formats: 1-, 2-, 4- and 8-bits.
Converting to 1- and/or 8-bits is easy by using the options "FT_LOAD_...".
But there is no way to convert to 2- and 4-bits.
I found a very useful feature to me "FT_Pixel_Mode".
But there is no way to convert the bitmap format when loading/rendering the glyphs.
There is only one way to convert the glyph bitmap from these formats to a bitmap with 8-bits pixels by using "FT_Bitmap_Convert" but not versa.

Do I see this right?

Thanks in advance,
Michael

--



Nobody is perfect!
Nobody lives forever to correct his mistakes someday in the future, if not right now!
Covid-19 is not responsible for any human failures!


reply via email to

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