Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cae0302 commit 83a6b60Copy full SHA for 83a6b60
2 files changed
lib/matplotlib/font_manager.py
@@ -96,6 +96,9 @@
96
'extrabold': 800,
97
'superbold': 800,
98
'ultrabold': 800,
99
+ 'ultrablack': 1000,
100
+ 'superblack': 1000,
101
+ 'extrablack': 1000,
102
'black': 900,
103
}
104
_weight_regexes = [
lib/matplotlib/tests/test_font_manager.py
@@ -430,6 +430,9 @@ def test_normalize_weights():
430
assert _normalize_weight('extrabold') == 800
431
assert _normalize_weight('superbold') == 800
432
assert _normalize_weight('ultrabold') == 800
433
+ assert _normalize_weight('ultrablack') == 1000
434
+ assert _normalize_weight('superblack') == 1000
435
+ assert _normalize_weight('extrablack') == 1000
436
assert _normalize_weight('black') == 900
437
with pytest.raises(KeyError):
438
_normalize_weight('invalid')
0 commit comments