Page 1 of 1

Overriding a font's LineSpacing

Posted: Tue Jan 12, 2010 21:15
by codeka
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

Re: Overriding a font's LineSpacing

Posted: Wed Jan 13, 2010 10:48
by CrazyEddie
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.

Re: Overriding a font's LineSpacing

Posted: Mon Jan 18, 2010 10:03
by CrazyEddie
Just a note to say this has now made it to svn branches/v0-7.

Thanks again :)

CE.

Re: Overriding a font's LineSpacing

Posted: Tue Jan 19, 2010 09:42
by codeka
Cool! I can update and get rid of my customizations! Those red "!" icons always bug me :)