From 89f4bb3ca17e67d6fbe64a3ae69de06ad3295275 Mon Sep 17 00:00:00 2001 From: orionaskatu <100234619+orionaskatu@users.noreply.github.com> Date: Fri, 9 Sep 2022 21:42:46 +0200 Subject: [PATCH] Cleaner condition --- modules/images.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/images.py b/modules/images.py index 41d1e6ef6..932fd2160 100644 --- a/modules/images.py +++ b/modules/images.py @@ -133,10 +133,7 @@ def draw_grid_annotations(im, width, height, hor_texts, ver_texts): fontsize = (width + height) // 25 line_spacing = fontsize // 2 - if not opts.font: - fnt = ImageFont.truetype(Roboto, fontsize) - else: - fnt = ImageFont.truetype(opts.font, fontsize) + fnt = ImageFont.truetype(opts.font or Roboto, fontsize) color_active = (0, 0, 0) color_inactive = (153, 153, 153)