-
Notifications
You must be signed in to change notification settings - Fork 0
Font mapping
R2turnTrue edited this page Mar 11, 2022
·
2 revisions
When rpb built, create fontmap.json that places on res/fontmap.json.
When RPB create a font resource pack, the bitmap font character selected randomly. So you need to change bitmap font character on your plugin when a resource-pack rebuilt.
So, RPB provides a human-readable font mapping file with key, value.
ChatImage's id will be key, the font bitmap character will be value.
chatimage ID: ui_npm
assets/minecraft/font/default.json
{"_comment":"Auto-generated by HoloRight RPB! Do not edit this file!","providers":[{"id":"ui_npm","type":"bitmap","file":"holoright:font/ui_npm.png","ascent":-14,"height":8,"chars":["\u766E"]}]}fontmap.json
{"ui_npm":"\u766E"}