Exordium

Exordium

984k Downloads

Custom font on signs is cropped

Felix14-v2 opened this issue ยท 5 comments

commented

During the development of the map for Realms, I noticed that the image of the text with custom font is cropped in a strange way:
Screenshot_20221226-110143
Screenshot_20221226-125307

Expected behavior (Vanilla/Sign Buffering disabled)

image (1)
image (2)

Without mod and resourcepack

image (3)

Is it possible to fix that behavior? As I understand from #48 , sign optimization works with great limitations in relation to custom fonts.

commented

Like you linked with #48, this entire feature assumes vanilla signs and fonts. Adding support for HD fonts or really unusual use cases like this one is not really planned.

commented

Maybe, as a fallback, it is possible to add settings for changing the maximum resolution and offset of the text outside the sign? Custom fonts are quite often used in maps and minigames.

commented

Well, if you do not plan to change something in this area, feel free to close the issue. Thank you for your time anyway!

commented

For people that play maps like that, they should just turn off the feature or remove the mod. Increasing the resolution doesn't sound like a good idea, since it would eat a ton more gpu memory. Rather, I'd like to decrease the texture size to actually fit the sign where vanilla does render to. Right now it's about 50% too big.

commented

As a background: I can't know how "high res" the font is, or how much custom hacky fonts render outside of the intended sign area. So it's not really possible(without a ton of dirty tricks/assumptions) to do this right. That's why I just limit the scope to vanilla use-cases, without odd resource packs/mods.