mcfonts.provider.mappings

Module Contents

class CodepointMapping[G: mcfonts.glyph.Glyph]

Bases: collections.abc.MutableMapping[str, G], collections.abc.Container[str]

A MutableMapping is a generic container for associating key/value pairs.

This class provides concrete generic implementations of all methods except for __getitem__, __setitem__, __delitem__, __iter__, and __len__.

__contains__(item: object) bool
Parameters:
item : object

Return type:

bool

__delitem__(key: str) None
Parameters:
key : str

Return type:

None

__getitem__(key: str) G
Parameters:
key : str

Return type:

G

__iter__() collections.abc.Generator[str]
Return type:

collections.abc.Generator[str]

__len__() int

Return the number of glyphs.

Return type:

int

__setitem__(key: str, value: G)
Parameters:
key : str

value : G

Return type:

None

static check_character(character: str) None
Parameters:
character : str

Return type:

None