From 80e155c1c042d080772447d92c146501662ab85e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 12 Sep 2017 10:39:20 -0400 Subject: [PATCH] [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. --- fontconfig/fontconfig.h | 1 + src/fcobjs.h | 1 + 2 files changed, 2 insertions(+) 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 @@ typedef int FcBool; #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 (HASH, FcTypeString, NULL) /* deprecated */ 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. */