[Fontconfig] Granular synthetic emboldening possible ?

Akira TAGOH akira at tagoh.org
Wed Jan 23 09:34:29 UTC 2019


On Wed, Jan 23, 2019 at 5:50 PM Werner LEMBERG <wl at gnu.org> wrote:
> Uh, oh, bad wording on my side, sorry.  What he's actually after is
> not emboldening per se but asking for *weight* N and wanting
> fontconfig return a font with weight N+5 – ideally without
> emboldening.

Well, if simply wanting to increase a weight in what fontconfig returns:

<match target="font">
  <edit name="weight" mode="assign">
    <plus>
        <name>weight</name>
        <int>5</int>
    </plus>
  </edit>
</match>

will always increase 5 to weight in result for example though, it
won't take any effects on rendering.
Or always wanting to *request* N+5 whether or not exactly finding it out:

<match target="pattern">
  <edit name="weight" mode="assign">
    <plus>
      <name>weight</name>
      <int>5</int>
    </plus>
  </edit>
</match>

But this may not helps if no such fonts available on system.

Anyway, if modifying a weight takes effects to the rendering, we don't
need emboldeing at all. so...
or am I still misunderstanding requrements here?

>
>
>     Werner



-- 
Akira TAGOH


More information about the Fontconfig mailing list