Bug 50497 - RFE: Add OpenType feature tags support
authorAkira TAGOH <akira@tagoh.org>
Tue, 4 Sep 2012 03:39:48 +0000 (12:39 +0900)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 16 Jan 2013 01:40:26 +0000 (19:40 -0600)
Add FC_FONT_FEATURES to store the feature tags to be enabled.

doc/fontconfig-devel.sgml
doc/fontconfig-user.sgml
fontconfig/fontconfig.h
src/fcobjs.h

index 79cceb1..b35ef9a 100644 (file)
@@ -190,6 +190,8 @@ convenience for the application's rendering mechanism.
                                                   the font
     embolden       FC_EMBOLDEN            Bool    Rasterizer should
                                                   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
                                                   default value of familylang,
                                                   stylelang and fullnamelang
index c842371..068b1fc 100644 (file)
@@ -131,6 +131,7 @@ convenience for the applications' rendering mechanism.
   fontversion     Int     Version number of the font
   capability      String  List of layout capabilities in the font
   embolden        Bool    Rasterizer should synthetically embolden the font
+  fontfeatures    String  List of the feature tags in OpenType to be enabled
     </programlisting>
   </refsect2>
   <refsect2>
index 52e9438..3676fc1 100644 (file)
@@ -112,6 +112,7 @@ typedef int         FcBool;
 #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_LCD_FILTER      "lcdfilter"         /* Int */
+#define FC_FONT_FEATURES    "fontfeatures"     /* String */
 #define FC_NAMELANG        "namelang"          /* String RFC 3866 langs */
 
 #define FC_CACHE_SUFFIX                    ".cache-" FC_CACHE_VERSION
index 1e9067e..cbe0190 100644 (file)
@@ -41,4 +41,5 @@ FC_OBJECT (EMBEDDED_BITMAP,   FcTypeBool)
 FC_OBJECT (DECORATIVE,         FcTypeBool)
 FC_OBJECT (LCD_FILTER,         FcTypeInteger)
 FC_OBJECT (NAMELANG,           FcTypeString)
+FC_OBJECT (FONT_FEATURES,      FcTypeString)
 /* ^-------------- Add new objects here. */