fixed easy apply button, make some refactoring and fixed saiving cover letters

This commit is contained in:
queukat 2024-09-13 02:32:23 +03:00
parent 5568931234
commit 82fc6bedde
3 changed files with 181 additions and 112 deletions

View file

@ -179,3 +179,8 @@ 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]