diff options
Diffstat (limited to 'include/freetype/ftimage.h')
-rw-r--r-- | include/freetype/ftimage.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h index 5e2257f96..8cf8a48da 100644 --- a/include/freetype/ftimage.h +++ b/include/freetype/ftimage.h @@ -157,6 +157,13 @@ FT_BEGIN_HEADER * in font files according to the OpenType specification. We haven't * found a single font using this format, however. * + * FT_PIXEL_MODE_GRAY16 :: + * A 16-bit per pixel bitmap used to represent signed distances in a + * signed distance field bitmap as needed by @FT_RENDER_MODE_SDF. + * Values are represented in a 6.10 fixed-point format; this means + * that you have to divide by 1024 to get the actual data generated by + * the SDF rasterizers. + * * FT_PIXEL_MODE_LCD :: * An 8-bit bitmap, representing RGB or BGR decimated glyph images used * for display on LCD displays; the bitmap is three times wider than @@ -184,6 +191,7 @@ FT_BEGIN_HEADER FT_PIXEL_MODE_GRAY, FT_PIXEL_MODE_GRAY2, FT_PIXEL_MODE_GRAY4, + FT_PIXEL_MODE_GRAY16, FT_PIXEL_MODE_LCD, FT_PIXEL_MODE_LCD_V, FT_PIXEL_MODE_BGRA, @@ -959,11 +967,17 @@ FT_BEGIN_HEADER * will be clipped to a box specified in the `clip_box` field of the * @FT_Raster_Params structure. Otherwise, the `clip_box` is * effectively set to the bounding box and all spans are generated. + * + * FT_RASTER_FLAG_SDF :: + * This flag is set to indicate that a signed distance field glyph + * image should be generated. This is only used while rendering with + * the @FT_RENDER_MODE_SDF render mode. */ #define FT_RASTER_FLAG_DEFAULT 0x0 #define FT_RASTER_FLAG_AA 0x1 #define FT_RASTER_FLAG_DIRECT 0x2 #define FT_RASTER_FLAG_CLIP 0x4 +#define FT_RASTER_FLAG_SDF 0x8 /* these constants are deprecated; use the corresponding */ /* `FT_RASTER_FLAG_XXX` values instead */ |