Hawk3388 commited on
Commit
e56b8c4
·
1 Parent(s): 2a73d35

modified: main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -728,7 +728,7 @@ Rules:
728
  try:
729
  font = ImageFont.truetype("C:/Windows/Fonts/arial.ttf", font_size)
730
  except OSError:
731
- font = ImageFont.load_default()
732
  break
733
 
734
  # Test if text fits
 
728
  try:
729
  font = ImageFont.truetype("C:/Windows/Fonts/arial.ttf", font_size)
730
  except OSError:
731
+ font = ImageFont.load_default(font_size)
732
  break
733
 
734
  # Test if text fits