Skip to content

Commit 0c5c2d5

Browse files
committed
Add back header variable
1 parent 8d11d61 commit 0c5c2d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_bitmap_font/lvfontbin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@
3434

3535
from .glyph_cache import GlyphCache
3636

37+
# The LVGL file starts with the size of the 'head' section. It hasn't changed in five years so
38+
# we can treat it like a magic number.
39+
LVGL_HEADER_SIZE = b"\x30\x00\x00\x00"
40+
3741

3842
class LVGLFont(GlyphCache):
3943
"""Loads glyphs from a LVGL binary font file in the given bitmap_class.

0 commit comments

Comments
 (0)