Re: Another proposal for saving custom fonts in fontconfig

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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,
                         FC_FONT_FEATURES, FcTypeString,
                         "kern 0, dlig",

FcDirCacheAddStyle (NULL, fontfile, 0, "Saved Custom Style", custom);

FcPatternDestroy (custom);


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

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux