mcfonts.utils.exporting.unihex
¶
Functions for exporting into the GNU Unifont HEX format.
Contains functions for transforming and handling Unifont HEX data.
Module Contents¶
Functions¶
|
Generate a .hex glyph out of a |
|
Include glyph into the .hex font, represented as a dictionary. |
|
Set .hex glyph data to a character. |
|
Set a simple blank space width to a character. |
- mcfonts.utils.exporting.unihex.generate_bitmap_hex(glyph)¶
Generate a .hex glyph out of a
BitmapGlyph
.- Parameters:¶
- glyph : mcfonts.glyphs.BitmapGlyph¶
A
BitmapGlyph
.
- Returns:¶
A string of the .hex glyph data. In hexadecimal, used as-is for exporting.
- Return type:¶
str
- mcfonts.utils.exporting.unihex.include_glyph(hex_store, glyph, character)¶
Include glyph into the .hex font, represented as a dictionary.
Different Glyph subtypes have different methods of being imported; this function centralizes those varying methods.
-
mcfonts.utils.exporting.unihex.set_hex_to_character(hex_store, hex_glyph, character, replace=
True
)¶ Set .hex glyph data to a character.
-
mcfonts.utils.exporting.unihex.set_space_to_character(hex_store, character, width, replace=
True
)¶ Set a simple blank space width to a character.