diff --git a/homepage/static/NotoSansArabic-Regular.ttf b/homepage/static/NotoSansArabic-Regular.ttf new file mode 100644 index 0000000..08a5b52 Binary files /dev/null and b/homepage/static/NotoSansArabic-Regular.ttf differ diff --git a/homepage/static/NotoSansKR-Regular.ttf b/homepage/static/NotoSansKR-Regular.ttf new file mode 100644 index 0000000..1b14d32 Binary files /dev/null and b/homepage/static/NotoSansKR-Regular.ttf differ diff --git a/scripts/daily_plot.py b/scripts/daily_plot.py index 43a4464..f1ae997 100755 --- a/scripts/daily_plot.py +++ b/scripts/daily_plot.py @@ -189,8 +189,12 @@ def load_fonts(): for font in font_manager.findSystemFonts(font_dir, fontext='ttf'): font_manager.fontManager.addfont(font) # Set font family globally - if conf['DATABASE_LANG'] in ['ja', 'zh']: + if conf['DATABASE_LANG'] == 'ar': + rcParams['font.family'] = 'Noto Sans Arabic' + elif conf['DATABASE_LANG'] in ['ja', 'zh']: rcParams['font.family'] = 'Noto Sans JP' + elif conf['DATABASE_LANG'] == 'ko': + rcParams['font.family'] = 'Noto Sans KR' elif conf['DATABASE_LANG'] == 'th': rcParams['font.family'] = 'Noto Sans Thai' else: