File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646//| ...
4747//|
4848
49- //| bitmap: Any = ...
49+ //| bitmap: bitmap = ...
5050//| """Bitmap containing all font glyphs starting with ASCII and followed by unicode. Use
5151//| `get_glyph` in most cases. This is useful for use with `displayio.TileGrid` and
5252//| `terminalio.Terminal`."""
@@ -64,7 +64,7 @@ const mp_obj_property_t fontio_builtinfont_bitmap_obj = {
6464 (mp_obj_t )& mp_const_none_obj },
6565};
6666
67- //| def get_bounding_box(self) -> Any :
67+ //| def get_bounding_box(self) -> Tuple[int, int] :
6868//| """Returns the maximum bounds of all glyphs in the font in a tuple of two values: width, height."""
6969//| ...
7070//|
@@ -76,7 +76,7 @@ STATIC mp_obj_t fontio_builtinfont_obj_get_bounding_box(mp_obj_t self_in) {
7676MP_DEFINE_CONST_FUN_OBJ_1 (fontio_builtinfont_get_bounding_box_obj , fontio_builtinfont_obj_get_bounding_box );
7777
7878
79- //| def get_glyph(self, codepoint: Any ) -> Any :
79+ //| def get_glyph(self, codepoint: int ) -> fontio.Glyph :
8080//| """Returns a `fontio.Glyph` for the given codepoint or None if no glyph is available."""
8181//| ...
8282//|
You can’t perform that action at this time.
0 commit comments