Hello, I've been using TextAreaOverlayElements with TTF fonts for my GUI and so far I only have 2 issues.
1. I haven't used relative mode yet, as my GUI currently uses pixels (I'll change it to support relative later, but for now I'm just using pixels). So, say I want to set the font height to XX pixels, the visual output doesn't seem to equal that many pixels on the screen. The text looks fine, but ends up not exactly as tall as the pixels specified, which is what I want. This has the side effect of, as I increase text height, causing the space between lines of text bigger and bigger when I want it to be the same. This is happening for all fonts.
This screenshot demonstrates my problem:
The white lines running through the text are showing the top left and bottom right corners of the text. Is there some sort of excess padding going on (and can I turn it off)? I'm trying to get the top of each line of text to be directly under the bottom of the line above it by moving text down at the specified pixel height, but the text itself isn't actually showing up at that height.
2. I have a particular font that has a very wide 'Q' glyph. The rightmost portion of the Q is being cut, and included in the R glyph. It seems that Ogre doesn't care about the width of each glyph and is using a standard width for each one. Here's an example of that:
You can see the Q in "EQUIP" having its tail cut short, and every R character has the remainder of Q's tail in it. The font is TrajanPro-Regular.otf, and can be seen here: http://www.fonts.com/FindFonts/detail.h ... tid=159646. I haven't encountered this problem with other fonts yet, but I don't think any others I'm using have characters such as the Q in that one. Anything I can do here?
TextAreaOverlayElement - Pixel height and glyph width issues
-
- Kobold
- Posts: 33
- Joined: Sun Dec 19, 2010 9:55 am
TextAreaOverlayElement - Pixel height and glyph width issues
You do not have the required permissions to view the files attached to this post.