adafruit_bitmap_font.bdf

Loads BDF format fonts.

  • Author(s): Scott Shawcroft

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_bitmap_font.bdf.BDF(f, bitmap_class)

Loads glyphs from a BDF file in the given bitmap_class.

get_bounding_box()

Return the maximum glyph size as a 4-tuple of: width, height, x_offset, y_offset

load_glyphs(code_points)

Loads displayio.Glyph objects into the GlyphCache from the font.

adafruit_bitmap_font.glyph_cache

Displays text using CircuitPython’s displayio.

  • Author(s): Scott Shawcroft

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_bitmap_font.glyph_cache.GlyphCache

Caches glyphs loaded by a subclass.

get_glyph(code_point)

Returns a displayio.Glyph for the given code point or None is unsupported.

load_glyphs(code_points)

Loads displayio.Glyph objects into the GlyphCache from the font.