Thanks to visit codestin.com
Credit goes to github.com

Skip to content

bug in font_manager.FontManager.score_family() #4607

Closed
@chadawagner

Description

@chadawagner

If a font to be scored is found first in the font alias list, it currently results in a "perfect" score of 0.
For example:

font_manager.FontManager().score_family(['myfont','sans-serif'], 'bitstream vera sans')

will return 0, and 'myfont' will never be found if it happens to appear later in the list of known fonts.

Commit 314a0cf already attempted to address this issue, but didn't solve it in the case I'm running into.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions