v.0.4.5 rm font_height from utils

This commit is contained in:
tiijay
2025-10-25 12:01:45 +02:00
parent 1d76371354
commit a1ac556a8e
6 changed files with 58 additions and 69 deletions

View File

@@ -22,21 +22,6 @@ def char_width(char_matrix) -> int:
return cw
def font_height(font) -> int:
"""Höhe in Pixeln eines Fonts
Args:
font ([int]): der Font für den die Höhe bestimmt wird
Returns:
int: Höhe in Pixeln
"""
# wir nehmen uns ein Zeichen des Fonts
# die Anzahl der Werte entspricht der Höhe in Pixeln
return len(font['a'])
def shift_letter_right(char, letter, debug=False) -> bool:
"""Prüfe ob das Zeichen auch komplett nach rechts gezogen ist