Suzie1 / ComfyUI_Comfyroll_CustomNodes

Custom nodes for SDXL and SD1.5 including Multi-ControlNet, LoRA, Aspect Ratio, Process Switches, and many more nodes.
https://civitai.com/models/183551/comfyui-comfyroll-custom-nodes
630 stars 83 forks source link

.otf Support #110

Open jerlinn opened 8 months ago

jerlinn commented 8 months ago

Original: file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and f.lower().endswith(".ttf")]

Suggestion support for otf fonts: file_list = [f for f in os.listdir(font_dir) if os.path.isfile(os.path.join(font_dir, f)) and (f.lower().endswith(".ttf") or f.lower().endswith(".otf"))]

CleanShot 2024-01-20 at 19 10 06@2x

CleanShot 2024-01-20 at 19 11 00@2x

camoody1 commented 6 months ago

+1 Bump Today is my birthday, so please add this feature. 🎉