From 7f671723f154a0962b7e2837bf27cc120550065b Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Fri, 9 Jul 2021 17:43:57 +0200 Subject: [PATCH] Fix config to go with dynamic font --- lib/dataStructures.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/dataStructures.py b/lib/dataStructures.py index c3ba26c..52ce4d5 100644 --- a/lib/dataStructures.py +++ b/lib/dataStructures.py @@ -214,7 +214,6 @@ class Song: self.fontMetadata = ImageFont.truetype(configObj['metafontfamily'], int(configObj['metaFontWeight'])) self.leftMargin = int(configObj['leftMargin']) self.rightMargin = int(configObj['rightMargin']) - self.originalFontSize = int(configObj['songFontWeight']) self.fontLyrics = ImageFont.truetype(configObj['lyricfontfamily'], self.fontSize) self.fontTablature = ImageFont.truetype(configObj['tablaturefontfamliy'], self.fontSize) self.configObj = configObj @@ -313,8 +312,6 @@ class Song: currentPageIt = 0 if not amountOfPages: return False - # Stop resizing if the font size is becoming too small - fontDifference = self.originalFontSize - self.fontSize # Stop resizing if we are creating too much widespace on the width smallestWhitespace = self.imageHeight biggestWhitespace = -1