mcfonts.coverage.charactertable¶
Print a table of every character in this font.
These are organized by their block, and order of appearance in the provider used to declare them. The string unknown_character will be displayed instead if the character does not exist.
Important
If a character is Private Use, it will not be shown at all.
Module Contents¶
-
class CharacterTableReport(font: mcfonts.font.MinecraftFont, *, show_offsets: bool =
True, unknown_character: str ='▯')¶ Bases:
mcfonts.coverage.CoverageReportPrint a table of every character in this font.
These are organized by their block, and order of appearance in the provider used to declare them. The string unknown_character will be displayed instead if the character does not exist.
Important
If a character is Private Use, it will not be shown at all.
For example:
▼ Block Elements (U+2580-U+259F) ▼ 0 1 2 3 4 5 6 7 8 9 A B C D E F U+258X ▀ ▁ ▂ ▃ ▄ ▅ ▆ ▇ █ ▉ ▊ ▋ ▌ ▍ ▎ ▏ U+259X ▐ ░ ▒ ▓ ▔ ▕ ▖ ▗ ▘ ▙ ▚ ▛ ▜ ▝ ▞ ▟Initialize.
- Parameters:¶
- font : mcfonts.font.MinecraftFont¶
The font.
- show_offsets : bool¶
Whether to show row offsets on the left side (as in
U+352X).- unknown_character : str¶
The character to display when a font has no glyph for a character in a table. The default is
U+25AF ▯ WHITE VERTICAL RECTANGLE.
- blocks : collections.abc.Mapping[str, int]¶
- chars : collections.abc.Sequence[str]¶
- font : mcfonts.font.MinecraftFont¶
- show_offsets : bool¶
- unknown_character : str¶
-
PRIVATE_USE_PREFIX : str =
'Private Use'¶ Prefix to identify Private Use Unicode blocks.