Bug 50497 - RFE: Add OpenType feature tags support

Add FC_FONT_FEATURES to store the feature tags to be enabled.
This commit is contained in:
Akira TAGOH 2012-09-04 12:39:48 +09:00 committed by Behdad Esfahbod
parent dffb69ed8c
commit 3f84695104
4 changed files with 5 additions and 0 deletions

View File

@ -190,6 +190,8 @@ convenience for the application's rendering mechanism.
the font the font
embolden FC_EMBOLDEN Bool Rasterizer should embolden FC_EMBOLDEN Bool Rasterizer should
synthetically embolden the font synthetically embolden the font
fontfeatures FC_FONT_FEATURES String List of the feature tags in
OpenType to be enabled
namelang FC_NAMELANG String Language name to be used for the namelang FC_NAMELANG String Language name to be used for the
default value of familylang, default value of familylang,
stylelang and fullnamelang stylelang and fullnamelang

View File

@ -131,6 +131,7 @@ convenience for the applications' rendering mechanism.
fontversion Int Version number of the font fontversion Int Version number of the font
capability String List of layout capabilities in the font capability String List of layout capabilities in the font
embolden Bool Rasterizer should synthetically embolden the font embolden Bool Rasterizer should synthetically embolden the font
fontfeatures String List of the feature tags in OpenType to be enabled
</programlisting> </programlisting>
</refsect2> </refsect2>
<refsect2> <refsect2>

View File

@ -112,6 +112,7 @@ typedef int FcBool;
#define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */ #define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */
#define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */ #define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */
#define FC_LCD_FILTER "lcdfilter" /* Int */ #define FC_LCD_FILTER "lcdfilter" /* Int */
#define FC_FONT_FEATURES "fontfeatures" /* String */
#define FC_NAMELANG "namelang" /* String RFC 3866 langs */ #define FC_NAMELANG "namelang" /* String RFC 3866 langs */
#define FC_CACHE_SUFFIX ".cache-" FC_CACHE_VERSION #define FC_CACHE_SUFFIX ".cache-" FC_CACHE_VERSION

View File

@ -41,4 +41,5 @@ FC_OBJECT (EMBEDDED_BITMAP, FcTypeBool)
FC_OBJECT (DECORATIVE, FcTypeBool) FC_OBJECT (DECORATIVE, FcTypeBool)
FC_OBJECT (LCD_FILTER, FcTypeInteger) FC_OBJECT (LCD_FILTER, FcTypeInteger)
FC_OBJECT (NAMELANG, FcTypeString) FC_OBJECT (NAMELANG, FcTypeString)
FC_OBJECT (FONT_FEATURES, FcTypeString)
/* ^-------------- Add new objects here. */ /* ^-------------- Add new objects here. */