Re: Forcing Artificial Italics on Fonts That *DO* Have One Available?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Mon, 2008-08-04 at 20:06 -0500, Erik wrote:

> Does anybody have an idea on how to force it to first select the regular 
> font, then apply artificial slanting to it?

Not to condone this kind of typographical abuse, but it seemed an
interesting problem. The key is to switch to a roman font for the match,
but then patch up the returned roman font to perform the artificial
oblique effect. I think fontconfig provides too much flexibility some

<match target="pattern">

        <!-- match requests for non-roman face -->
        <test name="slant" compare="not_eq">

        <!-- remember that this should be slanted -->
        <edit name="fake_slant">

        <!--- change to match a roman face instead -->
        <edit name="slant">

<match target="font">

        <!-- check to see if the font is roman -->
        <test name="slant">

        <!-- look for fonts which were marked for fake obliquing -->
        <test name="fake_slant">

        <!-- multiply the matrix to slant the font -->
        <edit name="matrix" mode="assign">

        <!-- mark the font as oblique now -->
        <edit name="slant">


Attachment: signature.asc
Description: This is a digitally signed message part

Fontconfig mailing list

[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux