MiniConsole / cecho display error

Post Reply
Jor'Mox
Posts: 1146
Joined: Wed Apr 03, 2013 2:19 am

MiniConsole / cecho display error

Post by Jor'Mox »

There is an error with using cecho with mini consoles, which seems to leave blank spaces for the color tags ("<white>" is actually written as " " instead of being "") until the console has a font size set explicitly. Here is a simple test case:
Code: [show] | [select all] lua
createMiniConsole("myConsole",0,0,0,0)
resizeWindow("myConsole",200,200)
cecho("myConsole","<red>red, <blue>blue, <white>white"
Note that at this point, the text is excessively spaced out.
Code: [show] | [select all] lua
setMiniConsoleFontSize("myConsole",12)
Now, the spaces collapse, and the text appears as it should.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: MiniConsole / cecho display error

Post by Vadi »

Ahh. Sounds like that font spacing business we've had a while back (and still do in 2.1. Hopefully 3.0, based on Qt 5, fixes these issues Qt's having).

Post Reply