Skip to content

Antialiasing for missing styles is derived from Regular style. #7

@dumol

Description

@dumol

For many fonts, disabling antialiasing makes sense only for the Regular style. E.g.:

    <match target="font">
        <test name="family"><string>PT Mono</string></test>
        <test name="style"><string>Regular</string></test>
        <test compare="less" name="pixelsize"><double>18.49</double></test>
        <edit name="antialias"><bool>false</bool></edit>
    </match>

This means "PT Mono" at size 14 will not be antialiased, while "PT Mono:style=bold" will be antialiased.

However, "PT Mono" has no Italic style, so it's automatically generated by FreeType when requested. Now, ideally this Italic style would be aliased, but there's currently no way to ask for that independently of the Regular style. Disabling antialiasing for the Regular style of PT Mono consequently disables it for the auto-generated italics as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions