From 4489e5878ce6f56ce8c3c796bf5046dd723e4780 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Mon, 8 Jan 2024 01:26:53 +0200 Subject: [PATCH] Update nodes.py --- nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index b28ccf0..694ff7c 100644 --- a/nodes.py +++ b/nodes.py @@ -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)