MultiColumnListbox formatting questions

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

enkd
Just popping in
Just popping in
Posts: 5
Joined: Thu Jul 06, 2006 21:59

MultiColumnListbox formatting questions

Postby enkd » Wed Jul 26, 2006 16:28

using 0.5.0rc1...

1) is there any way to right-justify text within a cell of a MultiColumnListbox? The fact that a ListboxItem is not derived from CEGUI::Window seems to limit the options.

2) does CEGUI support non-proportional (monospaced) TrueType fonts? I have tried using FreeMono.ttf and though the font is non-proportional in all Windows applications, the character spacing seems to vary in CEGUI (resulting in text which is not character aligned from one cell to another).

thanks!

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

Re: MultiColumnListbox formatting questions

Postby CrazyEddie » Thu Jul 27, 2006 08:59

enkd wrote:using 0.5.0rc1...

1) is there any way to right-justify text within a cell of a MultiColumnListbox? The fact that a ListboxItem is not derived from CEGUI::Window seems to limit the options.

Not directly, but it should be pretty simple to write a subclass of ListboxItem, say "ListboxRightJustifiedItem" which does this. Or possibly one with a configurable formatting option (literally about a screen of code, nothing major).

enkd wrote:2) does CEGUI support non-proportional (monospaced) TrueType fonts? I have tried using FreeMono.ttf and though the font is non-proportional in all Windows applications, the character spacing seems to vary in CEGUI (resulting in text which is not character aligned from one cell to another).

Seems it could be some kind of bug you have found :D We would have to have a look and see to be sure ;) In theory it is supposed to work correctly at the moment.

CE

enkd
Just popping in
Just popping in
Posts: 5
Joined: Thu Jul 06, 2006 21:59

Postby enkd » Thu Jul 27, 2006 17:05

Thanks for the info... yes, subclassing ListboxItem seems to be the way to go. Just wanted to make sure I wasn't missing something....

I'll keep my eye on the forums, in case anyone gets a chance to confirm the monospacing issue. Seems like it might be a freetype issue, I've seen the same behaviour in GIMP (which also uses freetype?)

thanks again!


Return to “Help”

Who is online

Users browsing this forum: No registered users and 11 guests