Code: Select all
26/11/2006 15:33:41 (Error) Exception: FontManager::getFont - A Font object with the specified name 'Commonwealth-10' does not exist within the system
26/11/2006 15:33:41 (Error) Exception: FontManager::getFont - A Font object with the specified name 'Commonwealth-10' does not exist within the system
26/11/2006 15:33:42 (Error) Exception: FontManager::getFont - A Font object with the specified name 'Commonwealth-10' does not exist within the system
26/11/2006 15:33:42 (Error) Exception: WindowManager::loadWindowLayout - Filename supplied for gui-layout loading must be valid.
26/11/2006 15:33:42 (Error) Exception: GUILayout_xmlHandler::startElement - layout loading aborted due to imported layout load failure (see error(s) above).
According to the error, the file name is wrong. This is the code im using to import a layout:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<GUILayout>
<Window Type="DefaultWindow" Name="root" >
<Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,0},{1,0}}" />
<LayoutImport>
<Property Filename="about.layout"/>
</LayoutImport>
</Window>
</GUILayout>
Did i use layoutImport wrong? I didnt find any example of layoutimport so im not sure.
The Filename is correct. Using "WindowManager::getSingleton().loadWindowLayout("about.layout");" in c++ works.