Skip to content

Commit 9191096

Browse files
committed
Put header in correct file
1 parent 0c5c2d5 commit 9191096

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

adafruit_bitmap_font/bitmap_font.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Bitmap_Font.git"
3636

3737

38+
# The LVGL file starts with the size of the 'head' section. It hasn't changed in five years so
39+
# we can treat it like a magic number.
40+
LVGL_HEADER_SIZE = b"\x30\x00\x00\x00"
41+
42+
3843
def load_font(
3944
filename: str, bitmap: Optional[Bitmap] = None
4045
) -> Union[bdf.BDF, lvfontbin.LVGLFont, pcf.PCF, ttf.TTF]:

adafruit_bitmap_font/lvfontbin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
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-
4137

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

0 commit comments

Comments
 (0)