On Wed, Jun 23, 2021 at 3:25 AM Michael Wachs <[email protected]> wrote: > 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.
Correct. FreeType rasterizers produce monochrome 1-bit or anti-aliased 8-bit output only. You will have to do further reductions from 8-bit to 2- or 4-bit reduction yourself: truncate lower bits and pack higher bits according to *your* specifications, endianness, etc. This is not too hard to warrant FreeType implementation. Alexei
