[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: A question about FT_Pixel_Mode
From: |
Alexei Podtelezhnikov |
Subject: |
Re: A question about FT_Pixel_Mode |
Date: |
Wed, 23 Jun 2021 12:52:25 -0400 |
On Wed, Jun 23, 2021 at 3:25 AM Michael Wachs <mickpf.mw@gmail.com> 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