Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitde16cf0

Browse files
committed
formatting
1 parent2535508 commitde16cf0

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-
iffont_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+
iffont_path.endswith('.ttc'):
229229
kw['fontNumber']=0
230230
withfontTools.ttLib.TTFont(font_path,**kw)asfont, \
231-
_backend_pdf_ps.get_glyphs_subset(font_path,subset_str)assubset:
231+
_backend_pdf_ps.get_glyphs_subset(font_path,subset_str
232+
)assubset:
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)

[8]ページ先頭

©2009-2025 Movatter.jp