Postby Ident » Sat Apr 02, 2016 22:29
A Font can be set for each CEGUI::Window, you can change the Font anytime later to any other Font that you have created beforehand.
Every font is rendered using a texture atlas, which is created for each Font and Font size, so you probably do not want to have too many different Fonts (and font sizes) in your game (which is also wise from a graphic design standpoint) if you care about performance.
If you do not set a Font for a Window, then default Font is taken from it. The default Font is specified in the GUIContext as you have shown. If you change the default Font there then all windows without specific Font defined for them should be updating their Fonts. If they do not do that then this is a bug we must fix! Are you saying changing the GUIContext's font does not change any Fonts of your windows? If you want to check if this is a bug, namely a lack of update, then try to directly invalidate the Window after changing the Context's Font using Window::invalidate() and see if that makes the Font appear as expected thereafter. If that makes any difference then someone forgot to trigger updates here and we must fix it.
CrazyEddie: "I don't like GUIs"