Contains (or will contain) a set of tools specific to Minecraft's glyphs.
data/old_widths.bin
is for version 1.12.
data/widths.bin
is for 19w02a.
See example.html
for usage examples.
- Read a predetermined format for glyph widths and store for later use. This is different from Minecraft's
glyph_sizes.bin
, which includes a starting and ending position. That information is irrelevant with the current features. Instead, each byte withinwidths.bin/old_widths.bin
is a width, while the index is the character code. - Replicate Minecraft's
obfuscate
option for the text component.
- Calculate total width of a line of text.
- Generate a modified
glyph_sizes.bin
. - Allow injection of functions for grabbing stored data.
- Minify & other efficiency changes.