From cc800415bb23f45d99b026d428fe9d1f85c71174 Mon Sep 17 00:00:00 2001 From: Raykosan <71210053+Raykosan@users.noreply.github.com> Date: Mon, 16 Mar 2026 20:54:24 +0300 Subject: [PATCH] Added the use of OTF fonts --- Rayko_Save_Image.py | 2 +- Rayko_Save_Image_Pair.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Rayko_Save_Image.py b/Rayko_Save_Image.py index a6c26b5..e7bcb20 100644 --- a/Rayko_Save_Image.py +++ b/Rayko_Save_Image.py @@ -11,7 +11,7 @@ print("\033[93m🦊\033[0m \033[93mRaykoStudio - RS Save Image \033[92mLOADED\03 def get_font_list(font_dir): if not os.path.isdir(font_dir): return [] - return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf')] + return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf', '.otf')] def create_text_panel(width, height, text, font_path, font_size, text_color, bg_color): panel = Image.new('RGB', (width, height), color=bg_color) diff --git a/Rayko_Save_Image_Pair.py b/Rayko_Save_Image_Pair.py index 850888f..28a6824 100644 --- a/Rayko_Save_Image_Pair.py +++ b/Rayko_Save_Image_Pair.py @@ -11,7 +11,7 @@ print("\033[93m🦊\033[0m \033[93mRaykoStudio - RS Save Image Pair \033[92mLOAD def get_font_list(font_dir): if not os.path.isdir(font_dir): return [] - return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf')] + return [f for f in os.listdir(font_dir) if f.lower().endswith('.ttf', '.otf')] def create_text_panel(width, height, text, font_path, font_size, text_color, bg_color): panel = Image.new('RGB', (width, height), color=bg_color)