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.
See discussion on #707.
The
default_sizeattribute comes into play if you callFontProperties.get_size_in_pointsor pass aFontPropertieswithsizeequal to a string from thefont_scalingsdictionary. 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_sizeto a value which can be multiplied with numbers (ie: not None)._load_from_cache_or_rebuildis explicitly resettingdefault_sizetoNoneevery time aFontManageris loaded from cache.