mirror of
https://github.com/stronk-dev/Guitar-Sheet-Parser.git
synced 2025-07-05 00:25:08 +02:00
Fix config to go with dynamic font
This commit is contained in:
parent
3305efd7d0
commit
7f671723f1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user