Sorry, I still think this is one possible API proposal candidate. Here are the example code of usage: ''' custom = FcPatternBuild (NULL, FC_FONT_VARIATIONS, FcTypeString, "wght=150;INKT=100", FC_FONT_FEATURES, FcTypeString, "kern 0, dlig", NULL); FcDirCacheAddStyle (NULL, fontfile, 0, "Saved Custom Style", custom); FcPatternDestroy (custom); ''' Thanks, Peng On Tue, 2019-07-02 at 18:12 +0900, Akira TAGOH wrote: > No. I thought we agreed with not using blackboxed parameters in > private discussions. that API potentially expects to override > everything with FcPattern which isn't desired at this point. if you > want to override a property other than FC_FONT_VARIATIONS, it should > be "const FcChar8 *object, const FcChar8 *value" instead of > "FcPattern > *custom". _______________________________________________ Fontconfig mailing list Fontconfig@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/fontconfig