diff options
author | Werner Lemberg <wl@gnu.org> | 2020-12-26 08:51:46 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2020-12-26 08:51:46 +0100 |
commit | b6c8542dfc5054a0863e13f386230ec0142eb82b (patch) | |
tree | 7f9d91271156a789e5c0abd1aa6812899c492bae | |
parent | 10a5dfec7ff3a0094efa48de07b219e5f025215a (diff) | |
download | freetype2-b6c8542dfc5054a0863e13f386230ec0142eb82b.tar.gz |
* src/base/ftobjs.c (pixel_modes): Updated.
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/freetype/ftimage.h | 5 | ||||
-rw-r--r-- | src/base/ftobjs.c | 4 |
3 files changed, 13 insertions, 0 deletions
@@ -1,3 +1,7 @@ +2020-12-26 Werner Lemberg <wl@gnu.org> + + * src/base/ftobjs.c (pixel_modes): Updated. + 2020-12-26 Anuj Verma <anujv@iitbhilai.ac.in> [sdf] Remove custom memory tracker. diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h index 8cf8a48da..0aee7f07a 100644 --- a/include/freetype/ftimage.h +++ b/include/freetype/ftimage.h @@ -209,6 +209,11 @@ FT_BEGIN_HEADER #define ft_pixel_mode_pal2 FT_PIXEL_MODE_GRAY2 #define ft_pixel_mode_pal4 FT_PIXEL_MODE_GRAY4 + /* */ + + /* For debugging, the @FT_Pixel_Mode enumeration must stay in sync */ + /* with the `pixel_modes` array in file `ftobjs.c`. */ + /************************************************************************** * diff --git a/src/base/ftobjs.c b/src/base/ftobjs.c index 45662030c..65c37e1d9 100644 --- a/src/base/ftobjs.c +++ b/src/base/ftobjs.c @@ -78,6 +78,9 @@ #pragma warning( pop ) #endif + /* This array must stay in sync with the @FT_Pixel_Mode enumeration */ + /* (in file `ftimage.h`). */ + static const char* const pixel_modes[] = { "none", @@ -85,6 +88,7 @@ "gray 8-bit bitmap", "gray 2-bit bitmap", "gray 4-bit bitmap", + "SDF 16-bit bitmap", "LCD 8-bit bitmap", "vertical LCD 8-bit bitmap", "BGRA 32-bit color image bitmap" |