Overriding a font's LineSpacing
Posted: 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
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