I think there should be a word tag for custom bitmap fonts.
It acts like the chars tag, and what it does is it takes an input(s), and it replaces all words that have the custom font applied to them with a texture.
So, if I do this:
{
"providers": [
{
"type": "bitmap",
"file": "custom:font/images.png",
"ascent": 7,
"height": 7,
"words": ["image"]
}
]
}
And then
/tellraw @p {"text":"image","font":"custom:customfont"}
It will replace "image" with the image at assets/custom/textures/font/image.png, just like the chars tag would. This would also work for a list of strings instead of just one.
Why should this be added?
I would like this tag to be added for better organization. As of right now, it is hard to manage fonts in code because the character we used is, well, one character. One character doesn't really explain what the image is about, so when I code something that has a custom font, I need to go back to the JSON File of the custom font and see which one I need to use. With a string, this would be much easier to remember, manage, and use. Yes, we could use translate for that, but translating doesn't allow custom fonts - only normal fonts. And it also means that we have to add the translation file for every single language.
Thank you for reading, I hope you add this, and have a good day!
Please sign in to leave a comment.
0 Comments