Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Fonts (RESOLVED)

Yin

Member

My fonts get cut off when there is only one line of text. I'm using ccoa's UMS. It only happens with the letters that hang like y, p, g, j, but it is annoying. Is there a fix? I've tried many fonts with the same results, some worse than others.
 

Atoa

Member

You should read better the instrutions of the script.
There's a specif part that makes it clear that wirh some fonts the letters you mentioned would be cut, and says how you can fix it.

The letters j, y, p, and g get cut off when in fit window to text mode! Help!

Okay, there seems to be no way I can anticipate every single font and font size combination, and apparently the Bitmap class is really bad at telling size. So, if you're having this problem, you're going to have to fix it yourself. Find these lines (there will be two):

height += delta + (delta * 0.2).to_i


And play with the 0.2 until it works for whatever font/font size you're using.
 

Yin

Member

Thanks! Must've missed that somehow. I usually only go to the instructions for the commands. Thanks a lot though, you saved me from using a font I don't like. Oh, nope. Those just weren't in the instructions in my version, but I found the lines that you mentioned and it's fixed now!
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top