34 lines
750 B
Python
34 lines
750 B
Python
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 ..emoji.emoji_5x7 import emoji_5x7
|
|
from ..emoji.emoji_8x8 import emoji_8x8
|
|
from ..emoji.emoji_16x16 import emoji_16x16
|
|
|
|
fonts_meta_ = {
|
|
3: {'w': 3, 'h': 5},
|
|
5: {'w': 5, 'h': 7},
|
|
8: {'w': 8, 'h': 8},
|
|
16: {'w': 16, 'h': 16},
|
|
}
|
|
|
|
|
|
def fonts_meta(font):
|
|
if font == font_3x5:
|
|
return fonts_meta_[3]
|
|
elif font == font_5x7:
|
|
return fonts_meta_[5]
|
|
elif font == font_8x8:
|
|
return fonts_meta_[8]
|
|
elif font == font_16x16:
|
|
return fonts_meta_[16]
|
|
elif font == emoji_5x7:
|
|
return fonts_meta_[5]
|
|
elif font == emoji_8x8:
|
|
return fonts_meta_[8]
|
|
elif font == emoji_16x16:
|
|
return fonts_meta_[16]
|
|
else:
|
|
return None
|