Skip to content

Remove default_size and __default_weight from FontManager#723

Merged
jwiggins merged 1 commit into
masterfrom
refactor/font-cleanup
Mar 16, 2021
Merged

Remove default_size and __default_weight from FontManager#723
jwiggins merged 1 commit into
masterfrom
refactor/font-cleanup

Conversation

@jwiggins
Copy link
Copy Markdown
Member

Resolves #709

One more disruptive change for kiva.fonttools. This removes the default_size attribute from FontManager, plus all related code. Additionally the unused __default_weight attribute is also removed and FontProperties has been renamed to FontQuery to better reflect how it is actually used (internally, I'll add).

Copy link
Copy Markdown
Contributor

@rahulporuri rahulporuri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

IIUC, the user-facing behavior that changes in this PR is the fact that the user can no longer use relative sizes to set font size. Is that correct? But IIUC, the user was never actually able to use relative sizes for fonts because the code has been broken for a while now.

@jwiggins
Copy link
Copy Markdown
Member Author

Yes, that's correct.

@jwiggins jwiggins merged commit b0b8454 into master Mar 16, 2021
@jwiggins jwiggins deleted the refactor/font-cleanup branch March 16, 2021 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Do something about FontManager.default_size

2 participants