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

Skip to content

Commit 83a6b60

Browse files
committed
obvious missing keys added
1 parent cae0302 commit 83a6b60

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

lib/matplotlib/font_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@
9696
'extrabold': 800,
9797
'superbold': 800,
9898
'ultrabold': 800,
99+
'ultrablack': 1000,
100+
'superblack': 1000,
101+
'extrablack': 1000,
99102
'black': 900,
100103
}
101104
_weight_regexes = [

lib/matplotlib/tests/test_font_manager.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ def test_normalize_weights():
430430
assert _normalize_weight('extrabold') == 800
431431
assert _normalize_weight('superbold') == 800
432432
assert _normalize_weight('ultrabold') == 800
433+
assert _normalize_weight('ultrablack') == 1000
434+
assert _normalize_weight('superblack') == 1000
435+
assert _normalize_weight('extrablack') == 1000
433436
assert _normalize_weight('black') == 900
434437
with pytest.raises(KeyError):
435438
_normalize_weight('invalid')

0 commit comments

Comments
 (0)