[Fontconfig] Forcing Artificial Italics on Fonts That *DO* Have One Available?

Vasile Gaburici vgaburici at gmail.com
Mon Aug 4 22:39:25 PDT 2008


On Tue, Aug 5, 2008 at 7:22 AM, Behdad Esfahbod <behdad at behdad.org> wrote:
>
> I have a couple of ideas:
>
>  - Ban all Italic fonts so fontconfig does not see them at all. (may
> use target=scan for this, not sure).

This one is bad. Fonts have italic versions for a reason: some have
different glyph shapes, which aren't simply oblique versions of the
regular upright font. Also, some fonts like Latin Modern Serif even
have an upright italic version.

>  - This one should be easier:
>
>    * In target=pattern, copy the slant value to a temp variable (say,
> saved_slant),
>    * In target=pattern reset slant to roman,
>    * In target=font, use saved_slant to decide whether to do artificial
> slanting.
>
> HTH,
>
> --
> behdad
> http://behdad.org/
>
> "Those who would give up Essential Liberty to purchase a little
>  Temporary Safety, deserve neither Liberty nor Safety."
>        -- Benjamin Franklin, 1759
>
> _______________________________________________
> Fontconfig mailing list
> Fontconfig at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/fontconfig
>
>


More information about the Fontconfig mailing list