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

Skip to content

Commit 140058b

Browse files
committed
Discourage use of proprietary Matplotlib names for freetype hinting
Follow up to #17380
1 parent 5c13fb4 commit 140058b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

doc/api/api_changes_3.3/behaviour.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,5 +291,6 @@ larger GUIs, where Matplotlib may control the toolbar but not the status bar.
291291
:rc:`text.hinting` now supports the values "default", "no_autohint",
292292
"force_autohint", and "no_hinting", which directly map to the FreeType flags
293293
FT_LOAD_DEFAULT, etc. The old synonyms (respectively "either", "native",
294-
"auto", and "none") are still supported. To get normalized values, use
295-
`.backend_agg.get_hinting_flag`, which returns integer flag values.
294+
"auto", and "none") are still supported, but their use is discouraged. To get
295+
normalized values, use `.backend_agg.get_hinting_flag`, which returns integer
296+
flag values.

matplotlibrc.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,9 @@
293293
# Adobe Postscript (PSSNFS) font packages may also be
294294
# loaded, depending on your font settings.
295295

296-
## FreeType hinting flag ("foo" corresponds to FT_LOAD_FOO); may be one of the following:
296+
## FreeType hinting flag ("foo" corresponds to FT_LOAD_FOO); may be one of the
297+
## following (Proprietary Matplotlib-specific synonyms are given in parentheses,
298+
## but their use is discouraged):
297299
## - default: Use the font's native hinter if possible, else FreeType's auto-hinter.
298300
## ("either" is a synonym).
299301
## - no_autohint: Use the font's native hinter if possible, else don't hint.

0 commit comments

Comments
 (0)