glyphsizesgen
v1.0.8
Published
Generate a glyph_sizes.bin file for Minecraft Unicode fonts
Downloads
6
Readme
glyph-sizes-bin-generator
This project can generate a glyph_sizes.bin file for the Minecraft Unicode font from a json file containing the glyph sizes. (Example file: example_file.json)
It can also generate a json file containing the glyph sizes for a specific range of Unicode characters from a glyph_sizes.bin file.
Usage:
Json to bin:
<script> [jsonInput]
<script>
: The path to the script (could beyarn start
ornpx glyphsizesgen
)[jsonInput]
: The name of the json file to convert to a bin file (can contain comments).
Example usage:
yarn start ./example_file.json
Bin to json:
<script> --reverse [binaryFile] [jsonOutput] [[start] [end]]...
<script>
: The path to the script (could beyarn start
ornpx glyphsizesgen
)[binaryFile]
: The name of the bin file to convert to a json file.[jsonOutput]
: The name of the json file to write the json data to.[[start] [end]]...
: The range of Unicode characters to write to the json file.
Example usage:
yarn start --reverse glyph_sizes.bin example_file.json U+0400 U+045F U+047A U+04A1