[Fontconfig] Another proposal for saving custom fonts in fontconfig
Peng Wu
peng.e.wu at gmail.com
Mon Jul 22 07:08:05 UTC 2019
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".
More information about the Fontconfig
mailing list