Skip to content

Font mapping

R2turnTrue edited this page Mar 11, 2022 · 2 revisions

Font mapping

When rpb built, create fontmap.json that places on res/fontmap.json.

Why?

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.

Example

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"}

Clone this wiki locally