Hi,
I created a StaticText. Within it, I put some text obtained from a custom font. When i cutting the letters from the sources, i put the XOffset = -10. When the StaticText renderizes the font, the first font of all it's showing clipped -in other cases it's showing not centered- (due to XOffset). How can i work around this problem?
Thanks
XOffset aligment
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: XOffset aligment
Well the obvious solution is to not set the images XOffset values to -10, but I'm guessing there must be some reason why you need the XOffset of the images to be set to -10?
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: XOffset aligment
Hi,
Yes I need the fonts are overlapped to achieve the effect I want to give. These fons have a glow, and I do not want to be space between them.
thx
Yes I need the fonts are overlapped to achieve the effect I want to give. These fons have a glow, and I do not want to be space between them.
thx
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: XOffset aligment
You might want to investigate the attribute 'HorzAdvance' which is used in the Font <Mapping> element to specify the amount to move the 'pen' before drawing the next glyph.
If you are already using the HorzAdvance, and are trying to combine it with the XOffset in the Imageset, the only thing I can suggest is to prefix a couple of spaces to the string before you set it to the StaticText (yeah, that's a bit of a hack).
CE.
If you are already using the HorzAdvance, and are trying to combine it with the XOffset in the Imageset, the only thing I can suggest is to prefix a couple of spaces to the string before you set it to the StaticText (yeah, that's a bit of a hack).
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Who is online
Users browsing this forum: No registered users and 16 guests