Ok, I managed to avoid the font problem by adding a dirty hack:
I simply set by code the font Autoscaled to false before an ImageSet Rendering, I also reactivate it to it's initial state just before a Layout Rendering.
It's working fine, and you're now allowed to use Autoscaled=true again.
So it's now time for the big news:
The Dual window CEGUI Rendering is now working fine!
It took me a long time, it wasn't really easy, and this trick has also a cost:
The render function is really a dirty hack. I need to hide or show correct sheets, scale windows, change fonts attributes and all this is really needed before rendering.
On the other hand, all of them make senses in a single rendering context, there's no strange behaviour !
One word about the next CEGUI release:
I know you're planning a multi rendering system.
As far as I can tell (meaning not much) I think it will be easy to achieve.
The current API is clean enough to support it, but there's also a lot of chance for you to face the FontGlyph problem too!
It's back to business now, I mean the editor itself !
I'm currently dividing the work in 4 parts:
ONCE UPON A TIME FAR IN THE FUTURE
- Cleaning the controls. (I mean the Layout mess in the left property panel)
- Improve the mouse selection in the ImageSet (I hate the autoselect from the List when the mouse enter a box, a click to update the list would be better)
- Checking all this under Linux.
- The most important part: Cleaning the code, and synch back to prepare SVN commits.
Ok this is just an idea, but as now all kind of possible CEGUI data is loaded by the ImageSetEditor, I'm really wondering if moving it from an ImageSet editor to a full skin editor is not such bad idea ?
Currently, the main document is an ImageSet, what about replacing this by a project document, which declare all the data needed for a full skin ?
We could then, slowly fill the editor with all the needed part to create or customize fonts, schemes, looknfeels etc...
I really think this is what everybody is waiting for: A full skin editor, and of course it should be delivered in only one tool, or it will be a total nightmare to work with !
Of course I'm not including Layout in this. It's not related to skinning itself, and the Layout Editor is doing this job fine !
Anyway, it's just ideas, I have far more urgent and basics things to complete first !
One last word regarding the CEGUI team:
Thanks for all your help on IRC, it really helps me a lot !
You rock guyz