Expand description
UGLY-MAXIMAL font.
Each character representation is defined as series of columns consisting of 5 bits
at maximum. Bits are ordered down-top and columns left-right. So 0 index bit of 0 index column
is top left corner. For example, for 0x1e = 0b11_110 which is 1ˢᵗ column of A this is 0.
Constants§
- DIGITS
- From ‘0’ to ‘9’.
- LETTERS
- English alphabet. 26 letters.
- SPACING
- One column of ’0’s.
- SYMBOLS
- Set of chosen symbols.
- UNSUPPORTED
- Special matrix for unsupported
charmapping.
Functions§
- buff_
size - Computes expected buffer size for
textprovided. Goes withstr.len()thus size is computed from size in bytes notchars nor graphemes. Optionally extends size withextra. - col_def
- Provides
cinto 5×5 matrix defined projection. Somechars are unsuitable for exact 5×5 representation. For instance ‘!’ which is only 1 column wide. All letters are capitalized. - col_
defs - Provides mappings for input
textinto 5x5 matrixes. Eachcharmapping is followed bySPACINGwith exception for last one. Wholetextis optinally followed byfinal_spcount ofSPACINGs. For details seecol_def.