You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, you can use font.translate to get text of any size, position, and color. My idea is to also be able to get decorated text, such as bold/italic/etc. Protocol lib could even be used to achieve animated text.
The text was updated successfully, but these errors were encountered:
That's a good idea, but I have to solve the problem with characters' width calculation for decorated text. I take the width from the font texture for plain text, but for decorated text I need to use some unknown coefficient. I don't think that there's a trivial solution.
idk about italic tho, but surely underline is also possible!
On second research, this bold font doesn't exist in ascii.png
It looks like what the game does is just duplicate the pixels by 1 pixel to the right
so it would be just 1 pixel longer
Right now, you can use font.translate to get text of any size, position, and color. My idea is to also be able to get decorated text, such as bold/italic/etc. Protocol lib could even be used to achieve animated text.
The text was updated successfully, but these errors were encountered: