marspass wrote:1 how to make the alignment of shadow change with the default text in statictext?
This is largely dependant upon whether you're using or need the scrollbars and such things. If you do not it may be possible to 'match' the area of the copy of the text used for shadow with the named area that is used by the static text (meaning WithFrameTextRenderArea or whatever).
If you need the text scrolling, or need to use anything other than the simplest cases, then you'll probably end up writing a replacement WindowRenderer object.
marspass wrote:2 Is there a way to add shadow to all text in cegui ?
Shadowed text is not directly supported, which is why you have to resort to drawing strings twice.
You might consider using a Pixmap based font which can have the shadows pre-rendered for each glyph (You might find this useful: http://www.cegui.org.uk/phpBB2/viewtopic.php?t=3875 for that).
CE