diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog index 076a7ebf0..f3c597cd5 100644 --- a/[GSoC]ChangeLog +++ b/[GSoC]ChangeLog @@ -1,3 +1,9 @@ +2020-06-19 Anuj Verma + + * include/freetype/ftimage.h (FT_Render_Mode_): Added new + pixel mode `FT_PIXEL_MODE_GRAY16' which will be used + to represent signed values while rendering to SDF bitmap. + 2020-06-19 Anuj Verma * include/freetype/freetype.h (FT_Render_Mode_): Added new diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h index 29b907a75..426b09441 100644 --- a/include/freetype/ftimage.h +++ b/include/freetype/ftimage.h @@ -157,6 +157,12 @@ 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. This is currently only used while + * rendering using @FT_RENDER_MODE_SDF. Note that this is a 2.14 + * fixed-point fractional value. + * * 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 +190,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,