8000 Improve font weight guessing by Rufflewind · Pull Request #8551 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Improve font weight guessing #8551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Restore original numeric weights
  • Loading branch information
Rufflewind committed May 1, 2017
commit 96a47ef51c8dc9412f11fa19eaeb4ddfc9872a0c
16 changes: 8 additions & 8 deletions lib/matplotlib/font_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,26 +93,26 @@
'ultra-expanded' : 900}

weight_dict = {
'hair' : 100,
'thin' : 100,
'extralight' : 200,
'ultralight' : 200,
'light' : 300,
'hair' : 50,
'thin' : 50,
'extralight' : 100,
'ultralight' : 100,
'light' : 200,
'normal' : 400,
'regular' : 400,
'book' : 400,
'plain' : 400,
'roman' : 400,
'medium' : 500,
'roman' : 500,
'semibold' : 600,
'demibold' : 600,
'demi' : 600,
'bold' : 700,
'heavy' : 800,
'extrabold' : 800,
'extra bold' : 800,
'ultrabold' : 800,
'black' : 900,
'heavy' : 900}
'black' : 900}

font_family_aliases = {
'serif',
Expand Down
0