[varfonts] Add FC_FONT_VARIATIONS
This is for clients to passthru font variation settings. Modeled
similar to FC_FONT_FEATURES. Each element value is for one axis
settings, eg. "abcd=2.3" where 'abcd' is the OpenType Font Variations
axis tag.
Needs docs update.
diff --git a/fontconfig/fontconfig.h b/fontconfig/fontconfig.h
index f085aa0..f4635aa 100644
--- a/fontconfig/fontconfig.h
+++ b/fontconfig/fontconfig.h
@@ -119,6 +119,7 @@
#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_FONT_VARIATIONS "fontvariations" /* String */
#define FC_NAMELANG "namelang" /* String RFC 3866 langs */
#define FC_PRGNAME "prgname" /* String */
#define FC_HASH "hash" /* String (deprecated) */
diff --git a/src/fcobjs.h b/src/fcobjs.h
index 5d3d981..c436a5d 100644
--- a/src/fcobjs.h
+++ b/src/fcobjs.h
@@ -70,4 +70,5 @@
FC_OBJECT (POSTSCRIPT_NAME, FcTypeString, FcComparePostScript)
FC_OBJECT (COLOR, FcTypeBool, FcCompareBool)
FC_OBJECT (SYMBOL, FcTypeBool, FcCompareBool)
+FC_OBJECT (FONT_VARIATIONS, FcTypeString, NULL)
/* ^-------------- Add new objects here. */