summaryrefslogtreecommitdiff
path: root/shared-bindings/fontio
diff options
context:
space:
mode:
Diffstat (limited to 'shared-bindings/fontio')
-rw-r--r--shared-bindings/fontio/BuiltinFont.c7
-rw-r--r--shared-bindings/fontio/Glyph.c31
-rw-r--r--shared-bindings/fontio/__init__.c17
3 files changed, 20 insertions, 35 deletions
diff --git a/shared-bindings/fontio/BuiltinFont.c b/shared-bindings/fontio/BuiltinFont.c
index f60c9e36c..bf9a65873 100644
--- a/shared-bindings/fontio/BuiltinFont.c
+++ b/shared-bindings/fontio/BuiltinFont.c
@@ -37,12 +37,7 @@
#include "supervisor/shared/translate.h"
//| class BuiltinFont:
-//| """.. currentmodule:: fontio
-//|
-//| :class:`BuiltinFont` -- A font built into CircuitPython
-//| =========================================================================================
-//|
-//| A font built into CircuitPython."""
+//| """A font built into CircuitPython"""
//|
//| def __init__(self, ):
//| """Creation not supported. Available fonts are defined when CircuitPython is built. See the
diff --git a/shared-bindings/fontio/Glyph.c b/shared-bindings/fontio/Glyph.c
index 6235dbc46..6558e2e7a 100644
--- a/shared-bindings/fontio/Glyph.c
+++ b/shared-bindings/fontio/Glyph.c
@@ -29,22 +29,27 @@
#include <stdint.h>
//| class Glyph:
-//| """.. currentmodule:: fontio
+//| """Storage of glyph info"""
//|
-//| :class:`Glyph` -- Storage of glyph info
-//| =========================================================================="""
-//|
-//| def __init__(self, bitmap: displayio.Bitmap, tile_index: int, width: int, height: int, dx: int, dy: int, shift_x: int, shift_y: int):
+//| def __init__(self,
+//| bitmap: displayio.Bitmap,
+//| tile_index: int,
+//| width: int,
+//| height: int,
+//| dx: int,
+//| dy: int,
+//| shift_x: int,
+//| shift_y: int):
//| """Named tuple used to capture a single glyph and its attributes.
//|
-//| :param displayio.Bitmap bitmap: the bitmap including the glyph
-//| :param int tile_index: the tile index within the bitmap
-//| :param int width: the width of the glyph's bitmap
-//| :param int height: the height of the glyph's bitmap
-//| :param int dx: x adjustment to the bitmap's position
-//| :param int dy: y adjustment to the bitmap's position
-//| :param int shift_x: the x difference to the next glyph
-//| :param int shift_y: the y difference to the next glyph"""
+//| :param bitmap: the bitmap including the glyph
+//| :param tile_index: the tile index within the bitmap
+//| :param width: the width of the glyph's bitmap
+//| :param height: the height of the glyph's bitmap
+//| :param dx: x adjustment to the bitmap's position
+//| :param dy: y adjustment to the bitmap's position
+//| :param shift_x: the x difference to the next glyph
+//| :param shift_y: the y difference to the next glyph"""
//| ...
//|
const mp_obj_namedtuple_type_t fontio_glyph_type = {
diff --git a/shared-bindings/fontio/__init__.c b/shared-bindings/fontio/__init__.c
index 478fc1806..f376f3503 100644
--- a/shared-bindings/fontio/__init__.c
+++ b/shared-bindings/fontio/__init__.c
@@ -33,22 +33,7 @@
#include "shared-bindings/fontio/BuiltinFont.h"
#include "shared-bindings/fontio/Glyph.h"
-//| """:mod:`fontio` --- Core font related data structures
-//| =========================================================================
-//|
-//| .. module:: fontio
-//| :synopsis: Core font related data structures
-//| :platform: SAMD21, SAMD51, nRF52
-//|
-//| The `fontio` module contains classes to store font related information.
-//|
-//| Libraries
-//|
-//| .. toctree::
-//| :maxdepth: 3
-//|
-//| BuiltinFont
-//| Glyph"""
+//| """Core font related data structures"""
//|
STATIC const mp_rom_map_elem_t fontio_module_globals_table[] = {