Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Apply hinting factor rcParam in all cases.#9481
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
This is only explicitly used in Agg, so any other users get the defaultin the C++ code. Thus if you modify this setting and use some otherbackend, you get very weird behaviour. Positioning sometimes breaks andglyphs are shrunk or cropped.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1366,7 +1366,12 @@ def is_opentype_cff_font(filename): | ||
_fmcache = None | ||
_get_font = lru_cache(64)(ft2font.FT2Font) | ||
def get_font(filename, hinting_factor=None): | ||
if hinting_factor is None: | ||
hinting_factor = rcParams['text.hinting_factor'] | ||
return _get_font(filename, hinting_factor) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Is not it equals to? @lru_cache(64)defget_font(filename,hinting_factor=None):ifhinting_factorisNone:hinting_factor=rcParams['text.hinting_factor']returnft2font.FT2Font(filename,hinting_factor) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. That would cache | ||
# The experimental fontconfig-based backend. | ||