mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-07-10 00:27:24 +08:00
Update nodes.py
This commit is contained in:
parent
f6b263a16d
commit
4489e5878c
3
nodes.py
3
nodes.py
@ -2755,7 +2755,8 @@ class AddLabel:
|
|||||||
|
|
||||||
if font == "TTNorms-Black.otf":
|
if font == "TTNorms-Black.otf":
|
||||||
font_path = os.path.join(script_dir, "fonts", "TTNorms-Black.otf")
|
font_path = os.path.join(script_dir, "fonts", "TTNorms-Black.otf")
|
||||||
|
else:
|
||||||
|
font_path = font
|
||||||
label_image = Image.new("RGB", (width, height), label_color)
|
label_image = Image.new("RGB", (width, height), label_color)
|
||||||
draw = ImageDraw.Draw(label_image)
|
draw = ImageDraw.Draw(label_image)
|
||||||
font = ImageFont.truetype(font_path, font_size)
|
font = ImageFont.truetype(font_path, font_size)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user