We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f683a7 commit 177fba9Copy full SHA for 177fba9
src/matplotlib_fontja/matplotlib_fontja.py
@@ -8,7 +8,7 @@
8
FONT_TTF = 'ipaexg.ttf'
9
10
11
-def japanize():
+def japanize() -> None:
12
font_dir_path = get_font_path()
13
font_dirs = [font_dir_path]
14
font_files = font_manager.findSystemFonts(fontpaths=font_dirs)
@@ -21,11 +21,11 @@ def japanize():
21
matplotlib.rc('font', family=FONT_NAME)
22
23
24
-def get_font_ttf_path():
+def get_font_ttf_path() -> str:
25
return os.path.join(get_font_path(), FONT_TTF)
26
27
28
-def get_font_path():
+def get_font_path() -> str:
29
return os.path.abspath(os.path.join(os.path.dirname(__file__), FONTS_DIR))
30
31
0 commit comments