[Fontconfig] Assigning a different weight
akira at tagoh.org
Thu Mar 22 18:20:07 PDT 2012
You can find out some idea on
https://bugs.freedesktop.org/show_bug.cgi?id=17722 though, why do you
want to do that in the config file? as it's described in the document
of FcFontMatch() and FcFontSort(), FcConfigSubstitute() and
FcDefaultSubstitute() is supposed to be called prior to use them. you
don't need to do something in the config file, what those functions
On Thu, Mar 22, 2012 at 11:14 PM, Jjgod Jiang <gzjjgod at gmail.com> wrote:
> In FcDefaultSubstitute() we have:
> if (FcPatternObjectGet (pattern, FC_WEIGHT_OBJECT, 0, &v) == FcResultNoMatch )
> FcPatternObjectAddInteger (pattern, FC_WEIGHT_OBJECT, FC_WEIGHT_MEDIUM);
> How do we implement the same logic but in conf files?
> Let's say I want to assign the weight to FC_WEIGHT_REGULAR, if it's empty.
> I can do it programmtically, of course. Just want to know if there is a way
> to do it in config files.
> - Jiang
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
More information about the Fontconfig