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

Skip to content

Commit de16cf0

Browse files
committed
formatting
1 parent 2535508 commit de16cf0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,13 @@ def _font_to_ps_type42(font_path, chars, fh):
223223
_log.debug("SUBSET %s characters: %s", font_path, subset_str)
224224
try:
225225
kw = {}
226-
if font_path.endswith('.ttc'):
227226
# fix this once we support loading more fonts from a collection
228227
# https://github.com/matplotlib/matplotlib/issues/3135#issuecomment-571085541
228+
if font_path.endswith('.ttc'):
229229
kw['fontNumber'] = 0
230230
with fontTools.ttLib.TTFont(font_path, **kw) as font, \
231-
_backend_pdf_ps.get_glyphs_subset(font_path, subset_str) as subset:
231+
_backend_pdf_ps.get_glyphs_subset(font_path, subset_str
232+
) as subset:
232233
fontdata = _backend_pdf_ps.font_as_file(subset).getvalue()
233234
_log.debug(
234235
"SUBSET %s %d -> %d", font_path, os.stat(font_path).st_size,

0 commit comments

Comments
 (0)