From c895d88c58cd580b3ec06e2a639e2c5fab3e5a33 Mon Sep 17 00:00:00 2001 From: Benjamin Cama Date: Tue, 17 Nov 2015 18:32:17 +0100 Subject: [PATCH] Fix wrong legacy LCD sub-pixel filter number At the time the sub-pixel filter configuration option was added, the value for the legacy filter was wrong, leading software using fontconfig to use 3 as filter number for the legacy one, while FreeType actually has defined it as 16. This lead to FT not using any filter at all if this filter was chosen. Fixes: 53aec111074c ("Fontconfig options for freetype sub-pixel filter configuration") Signed-off-by: Benjamin Cama --- doc/fontconfig-user.sgml | 2 +- fontconfig/fontconfig.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/fontconfig-user.sgml b/doc/fontconfig-user.sgml index 8f49f78..e12924c 100644 --- a/doc/fontconfig-user.sgml +++ b/doc/fontconfig-user.sgml @@ -517,7 +517,7 @@ symbolic names for common font values: lcdnone lcdfilter 0 lcddefault lcdfilter 1 lcdlight lcdfilter 2 - lcdlegacy lcdfilter 3 + lcdlegacy lcdfilter 16 hintnone hintstyle 0 hintslight hintstyle 1 hintmedium hintstyle 2 diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h index 57c1b68..8f267f3 100644 --- a/fontconfig/fontconfig.h +++ b/fontconfig/fontconfig.h @@ -189,7 +189,7 @@ typedef int FcBool; #define FC_LCD_NONE 0 #define FC_LCD_DEFAULT 1 #define FC_LCD_LIGHT 2 -#define FC_LCD_LEGACY 3 +#define FC_LCD_LEGACY 16 typedef enum _FcType { FcTypeUnknown = -1, -- 2.1.4