This commit is contained in:
chflame163
2024-09-23 20:21:14 +08:00
parent be52ed80d8
commit 9585ecaaec
6 changed files with 35 additions and 3 deletions
+6
View File
@@ -13,6 +13,9 @@ class SimpleTextImage:
@classmethod
def INPUT_TYPES(self):
(_, FONT_DICT) = get_resource_dir()
FONT_LIST = list(FONT_DICT.keys())
return {
"required": {
"text": ("STRING",{"default": "text", "multiline": True},
@@ -46,6 +49,9 @@ class SimpleTextImage:
width, height, size_as=None
):
(_, FONT_DICT) = get_resource_dir()
FONT_LIST = list(FONT_DICT.keys())
ret_images = []
ret_masks = []
if size_as is not None: