I'm in the process of adding multi-language support to my game and I need to use a different font for some east-asian languages. Unfortunately, the font I've chosen seem to be returning the wrong value for LineSpacing and all my title bars, combo boxes and other stuff that's based on line spacing is all screwed up.
So what I've done is added an extra parameter to the .font file where I can override line spacing value that's normally returned by the font. Here's a link to the patch (it should apply to the cegui-v0-7 branch):
http://codeka.com/tmp/cegui-override-linespacing.diff
Overriding a font's LineSpacing
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Overriding a font's LineSpacing
Hi,
Thanks for the patch. I've added this to our Mantis tracker, so I do not lose / forget about it. The feature sounds like a good addition to have; I'll check it over and (hopefully) get it committed to SVN in the coming days!
CE.
Thanks for the patch. I've added this to our Mantis tracker, so I do not lose / forget about it. The feature sounds like a good addition to have; I'll check it over and (hopefully) get it committed to SVN in the coming days!
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Overriding a font's LineSpacing
Just a note to say this has now made it to svn branches/v0-7.
Thanks again
CE.
Thanks again
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Re: Overriding a font's LineSpacing
Cool! I can update and get rid of my customizations! Those red "!" icons always bug me
Return to “Bug Reports, Suggestions, Feature Requests”
Who is online
Users browsing this forum: No registered users and 2 guests