Update nodes.py

This commit is contained in:
kijai 2024-01-08 01:26:53 +02:00
parent f6b263a16d
commit 4489e5878c

View File

@ -2755,7 +2755,8 @@ class AddLabel:
if font == "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)
draw = ImageDraw.Draw(label_image)
font = ImageFont.truetype(font_path, font_size)