Skip to content

Do something about FontManager.default_size #709

@jwiggins

Description

@jwiggins

See discussion on #707.

The default_size attribute comes into play if you call FontProperties.get_size_in_points or pass a FontProperties with size equal to a string from the font_scalings dictionary. However, I'm pretty sure no code actually does this.

In both of the above cases, you will fail unless you explicitly set FontManager.default_size to a value which can be multiplied with numbers (ie: not None). _load_from_cache_or_rebuild is explicitly resetting default_size to None every time a FontManager is loaded from cache.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions