Overriding a font's LineSpacing

If you found a bug in our library or on our website, please report it in this section. In this forum you can also make concrete suggestions or feature requests.

Moderators: CEGUI MVP, CEGUI Team

codeka
Just popping in
Just popping in
Posts: 2
Joined: Tue Oct 27, 2009 09:36

Overriding a font's LineSpacing

Postby codeka » Tue Jan 12, 2010 21:15

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

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Overriding a font's LineSpacing

Postby CrazyEddie » Wed Jan 13, 2010 10:48

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.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Overriding a font's LineSpacing

Postby CrazyEddie » Mon Jan 18, 2010 10:03

Just a note to say this has now made it to svn branches/v0-7.

Thanks again :)

CE.

codeka
Just popping in
Just popping in
Posts: 2
Joined: Tue Oct 27, 2009 09:36

Re: Overriding a font's LineSpacing

Postby codeka » Tue Jan 19, 2010 09:42

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 6 guests