Re: Assigning a different weight
- To: Jjgod Jiang <gzjjgod@xxxxxxxxx>
- Subject: Re: Assigning a different weight
- From: Akira TAGOH <akira@xxxxxxxxx>
- Date: Fri, 23 Mar 2012 10:20:07 +0900
- Cc: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Delivered-to: fontconfig@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tagoh.org; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=fbWt5Gq4OEV2uc4YJ9rZ1dXuNPh8q4q1WSe/c0ZPNJw=; b=AK2PeD14LzW+AslkEZ6Jm8MAaI5pYw+ELCPrwKYBc3Z27fpfhkd/a9KKqEMtdwb5R+ oZyRCidhoiLOMxMWqRhK47jVY96H86FsxkrZ6wNJESm6mwaMl9lGO1msJVw+rRVi6w/I UHiRq29QYWyQTEsqwPkbOSyEzLITfWtg6Syks=
- In-reply-to: <CALhZiQXaJwE0XnDVfGpzOHg+ehcuOB_3M8j-P7QYL=m4GB7=+Q@mail.gmail.com>
- References: <CALhZiQXaJwE0XnDVfGpzOHg+ehcuOB_3M8j-P7QYL=m4GB7=+Q@mail.gmail.com>
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
do.
On Thu, Mar 22, 2012 at 11:14 PM, Jjgod Jiang <gzjjgod@xxxxxxxxx> wrote:
> 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
> _______________________________________________
> Fontconfig mailing list
> Fontconfig@xxxxxxxxxxxxxxxxxxxxx
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
--
Akira TAGOH
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig
[Fedora Users]
[Fedora Cloud]
[Kernel]
[Fedora Legacy]
[Fedora Packaging]
[Fedora Desktop]
[PAM]
[Red Hat Development]
[Red Hat 9]
[Gimp]
[Yosemite News]