v.0.4.5 rm font_height from utils
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user