[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] anuj-distance-field 59cc0f7 04/95: * include/freetype/ftimag
From: |
Anuj Verma |
Subject: |
[freetype2] anuj-distance-field 59cc0f7 04/95: * include/freetype/ftimage.h (FT_Render_Mode_): Added new pixel mode. |
Date: |
Sun, 2 Aug 2020 01:10:24 -0400 (EDT) |
branch: anuj-distance-field
commit 59cc0f79cf461c0766d388f1d495c6349cc037d3
Author: Anuj Verma <anujv@iitbhilai.ac.in>
Commit: Anuj Verma <anujv@iitbhilai.ac.in>
* include/freetype/ftimage.h (FT_Render_Mode_): Added new pixel mode.
---
[GSoC]ChangeLog | 6 ++++++
include/freetype/ftimage.h | 7 +++++++
2 files changed, 13 insertions(+)
diff --git a/[GSoC]ChangeLog b/[GSoC]ChangeLog
index 076a7eb..f3c597c 100644
--- a/[GSoC]ChangeLog
+++ b/[GSoC]ChangeLog
@@ -1,5 +1,11 @@
2020-06-19 Anuj Verma <anujv@iitbhilai.ac.in>
+ * 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 <anujv@iitbhilai.ac.in>
+
* include/freetype/freetype.h (FT_Render_Mode_): Added new
rendermode `FT_RENDER_MODE_SDF' which will be used by the
`sdf' module to generate signed distance fields from glyph's
diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index 29b907a..426b094 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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] anuj-distance-field 59cc0f7 04/95: * include/freetype/ftimage.h (FT_Render_Mode_): Added new pixel mode.,
Anuj Verma <=