[Fontconfig] Assigning a different weight

Jjgod Jiang gzjjgod at gmail.com
Thu Mar 22 07:14:53 PDT 2012


Hi,

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


More information about the Fontconfig mailing list