fixed some issues
This commit is contained in:
parent
9ef928569b
commit
6540bbbb40
9 changed files with 127 additions and 77 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue