Skip to content

Font styles are wrong when the default language is not English #14

@qqzx2kp

Description

@qqzx2kp

The code that determines the font style in DefaultFontFactory cacheFont() is incorrect.

To get the English names the Local.ENGLISH argument should be on the getFamily and getName methods, not on toLowerCase.

This technique of determining the style isn't reliable, since there is no requirement for the font name to include terms like "bold" and "italic". It's also possible they could occur as substrings that don't relate to style.

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