Revert "fixed some issues"

This reverts commit 6540bbbb40.
This commit is contained in:
queukat 2024-09-09 23:39:12 +03:00
parent 6540bbbb40
commit b554357be9
9 changed files with 77 additions and 127 deletions

View file

@ -179,8 +179,3 @@ def printyellow(text):
reset = "\033[0m"
logger.debug("Printing text in yellow: %s", text)
print(f"{yellow}{text}{reset}")
def stringWidth(text, font, font_size):
bbox = font.getbbox(text)
return bbox[2] - bbox[0]