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!