mcfonts.serde.unihex

For details on the Unifont .hex format, see https://en.wikipedia.org/wiki/GNU_Unifont#.hex_format.

It a simple 1:1 codepoint-glyph format and no metadata or typesetting features.

Module Contents

class ToUnihexData

Bases: Protocol

Protocol for turning a glyph into GNU Unihex data.

to_unihex_data() str

Process and convert this glyph into GNU Unihex data.

Returns:

String of the data.

Return type:

str

class UnihexSaver

Bases: Protocol

Protocol for saving a provider to the GNU Unihex format.

unihex_save(entries: collections.abc.MutableSequence[str]) None

Save provider into entries.

Parameters:
entries : collections.abc.MutableSequence[str]

List of the current lines in the file.

Return type:

None

save_font(font: mcfonts.font.MinecraftFont) str
Parameters:
font : mcfonts.font.MinecraftFont

Return type:

str

sort_unihex(a: str) int
Parameters:
a : str

Return type:

int