v.0.4.5 rm font_height from utils
This commit is contained in:
@@ -2,5 +2,6 @@ from .font_3x5 import font_3x5
|
||||
from .font_5x7 import font_5x7
|
||||
from .font_8x8 import font_8x8
|
||||
from .font_16x16 import font_16x16
|
||||
from .fonts_utils import *
|
||||
|
||||
__all__ = ['font_3x5', 'font_5x7', 'font_8x8', 'font_16x16']
|
||||
|
||||
@@ -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