summaryrefslogtreecommitdiff
path: root/include/freetype
diff options
context:
space:
mode:
authorWerner Lemberg <wl@gnu.org>2015-11-20 16:03:09 +0100
committerWerner Lemberg <wl@gnu.org>2015-11-20 16:03:09 +0100
commitb96af12eb646534ab4d112e25210bd88812ee420 (patch)
tree00125408015ba70009ef7f1a635223f8ff61834b /include/freetype
parent68fb4789a582561606fafbe51e7a217598bb35ec (diff)
downloadfreetype2-b96af12eb646534ab4d112e25210bd88812ee420.tar.gz
Add `FT_LCD_FILTER_LEGACY1' enum value.
This does the same as `FT_LCD_FILTER_LEGACY'. See https://bugs.freedesktop.org/show_bug.cgi?id=92981 for the reasoning. * include/freetype/ftlcdfil.h (FT_LcdFilter): New value `FT_LCD_FILTER_LEGACY1'. * src/base/ftlcdfil.c (FT_Library_SetLcdFilter): Use it.
Diffstat (limited to 'include/freetype')
-rw-r--r--include/freetype/ftlcdfil.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/freetype/ftlcdfil.h b/include/freetype/ftlcdfil.h
index 9e3b42547..3a6252836 100644
--- a/include/freetype/ftlcdfil.h
+++ b/include/freetype/ftlcdfil.h
@@ -126,14 +126,23 @@ FT_BEGIN_HEADER
* This filter is only provided for comparison purposes, and might be
* disabled or stay unsupported in the future.
*
+ * FT_LCD_FILTER_LEGACY1 ::
+ * For historical reasons, the FontConfig library returns a different
+ * enumeration value for legacy LCD filtering. To make code work that
+ * (incorrectly) forwards FontConfig's enumeration value to
+ * @FT_Library_SetLcdFilter without proper mapping, it is thus easiest
+ * to have another enumeration value, which is completely equal to
+ * `FT_LCD_FILTER_LEGACY'.
+ *
* @since:
- * 2.3.0
+ * 2.3.0 (`FT_LCD_FILTER_LEGACY1' since 2.6.2)
*/
typedef enum FT_LcdFilter_
{
FT_LCD_FILTER_NONE = 0,
FT_LCD_FILTER_DEFAULT = 1,
FT_LCD_FILTER_LIGHT = 2,
+ FT_LCD_FILTER_LEGACY1 = 3,
FT_LCD_FILTER_LEGACY = 16,
FT_LCD_FILTER_MAX /* do not remove */