Page 1 of 1

Messed up text above a certain resolution

Posted: Sun Jan 06, 2013 00:06
by N_K
Hi all,

I'm not sure what am I doing wrong, but I can't get the fonts on my layouts to show up correctly at any resolution larger than 800x600. Image-based elements are fine (so far...), but the text is stretched and positioned wrong.

Here are some screenshots. This is how the text supposed to look like (at 800x600):
Image

And here's the messed up layout at 1024x768:
Image

These "info panels" are loaded from two separate .layout files (one contains the FPS/PolyCount/BatchCount labels, the other one contains the camera info). The font I'm using is the DejaVuSans.ttf/DejaVuSans-10.font that comes with the CEGUI samples.

The CEGUI version I'm using is 0.7.7, and the 3D engine is Ogre. Here's the CEGUI log file, although I doubt it contains any useful info regarding this problem:

Code: Select all

06/01/2013 00:42:02 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
06/01/2013 00:42:02 (Std)    +                     Crazy Eddie's GUI System - Event log                    +
06/01/2013 00:42:02 (Std)    +                          (http://www.cegui.org.uk/)                         +
06/01/2013 00:42:02 (Std)    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

06/01/2013 00:42:02 (Std)    CEGUI::Logger singleton created. (0055ABD8)
06/01/2013 00:42:02 (Std)    
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    * Important:                                                                   *
06/01/2013 00:42:02 (Std)    *     To get support at the CEGUI forums, you must post _at least_ the section *
06/01/2013 00:42:02 (Std)    *     of this log file indicated below.  Failure to do this will result in no  *
06/01/2013 00:42:02 (Std)    *     support being given; please do not waste our time.                       *
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    * -------- START OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM       -------- *
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    ---- Version 0.7.7 (Build: Dec 14 2012 Microsoft Windows g++ 4.7.0 32 bit) ----
06/01/2013 00:42:02 (Std)    ---- Renderer module is: CEGUI::OgreRenderer - Official OGRE based 2nd generation renderer module. ----
06/01/2013 00:42:02 (Std)    ---- XML Parser module is: CEGUI::ExpatParser - Official expat based parser module for CEGUI ----
06/01/2013 00:42:02 (Std)    ---- Image Codec module is: OgreImageCodec - Integrated ImageCodec using the Ogre engine. ----
06/01/2013 00:42:02 (Std)    ---- Scripting module is: None ----
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    * -------- END OF ESSENTIAL SECTION TO BE POSTED ON THE FORUM         -------- *
06/01/2013 00:42:02 (Std)    ********************************************************************************
06/01/2013 00:42:02 (Std)    
06/01/2013 00:42:02 (Std)    ---- Begining CEGUI System initialisation ----
06/01/2013 00:42:02 (Std)    CEGUI::ImagesetManager singleton created (0055B208)
06/01/2013 00:42:02 (Std)    CEGUI::FontManager singleton created. (0055B2E0)
06/01/2013 00:42:02 (Std)    CEGUI::WindowFactoryManager singleton created
06/01/2013 00:42:02 (Std)    CEGUI::WindowManager singleton created (0055FF20)
06/01/2013 00:42:02 (Std)    CEGUI::SchemeManager singleton created. (0055E070)
06/01/2013 00:42:02 (Std)    CEGUI::MouseCursor singleton created. (0055AE68)
06/01/2013 00:42:02 (Std)    CEGUI::GlobalEventSet singleton created. (0055A128)
06/01/2013 00:42:02 (Std)    CEGUI::AnimationManager singleton created (0055EE90)
06/01/2013 00:42:02 (Std)    CEGUI::WidgetLookManager singleton created. (0055C6A8)
06/01/2013 00:42:02 (Std)    CEGUI::WindowRendererManager singleton created (0055C968)
06/01/2013 00:42:02 (Std)    CEGUI::RenderEffectManager singleton created (0055BF18)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'DefaultWindow' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'DefaultWindow' windows added. (00562540)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'DragContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'DragContainer' windows added. (005625E8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'ScrolledContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'ScrolledContainer' windows added. (00562690)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'ClippedContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'ClippedContainer' windows added. (00562738)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Checkbox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Checkbox' windows added. (005627E0)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/PushButton' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/PushButton' windows added. (00562888)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/RadioButton' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/RadioButton' windows added. (00562930)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Combobox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Combobox' windows added. (005629D8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ComboDropList' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ComboDropList' windows added. (00562A80)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Editbox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Editbox' windows added. (00562B28)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/FrameWindow' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/FrameWindow' windows added. (00562BD0)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ItemEntry' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ItemEntry' windows added. (00562C78)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Listbox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Listbox' windows added. (00562D20)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ListHeader' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ListHeader' windows added. (00562DC8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ListHeaderSegment' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (00562E88)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Menubar' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Menubar' windows added. (00562F30)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/PopupMenu' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/PopupMenu' windows added. (00562FD8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/MenuItem' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/MenuItem' windows added. (00563080)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/MultiColumnList' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/MultiColumnList' windows added. (00563128)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/MultiLineEditbox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (005631D0)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ProgressBar' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ProgressBar' windows added. (00563278)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ScrollablePane' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ScrollablePane' windows added. (00563320)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Scrollbar' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Scrollbar' windows added. (005633C8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Slider' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Slider' windows added. (00563470)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Spinner' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Spinner' windows added. (00563518)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/TabButton' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/TabButton' windows added. (005635C0)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/TabControl' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/TabControl' windows added. (00563668)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Thumb' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Thumb' windows added. (00563710)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Titlebar' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Titlebar' windows added. (005637B8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Tooltip' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Tooltip' windows added. (00563860)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/ItemListbox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/ItemListbox' windows added. (00563908)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/GroupBox' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/GroupBox' windows added. (005639B0)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'CEGUI/Tree' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'CEGUI/Tree' windows added. (00563A58)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'HorizontalLayoutContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'HorizontalLayoutContainer' windows added. (00563B00)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'VerticalLayoutContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'VerticalLayoutContainer' windows added. (00563BA8)
06/01/2013 00:42:02 (Std)    Created WindowFactory for 'GridLayoutContainer' windows.
06/01/2013 00:42:02 (Std)    WindowFactory for 'GridLayoutContainer' windows added. (00563C50)
06/01/2013 00:42:02 (Std)    Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
06/01/2013 00:42:02 (Std)    CEGUI::System singleton created. (0055A880)
06/01/2013 00:42:02 (Std)    ---- CEGUI System initialisation completed ----
06/01/2013 00:42:02 (Std)    
06/01/2013 00:42:02 (Std)    Started creation of Scheme from XML specification:
06/01/2013 00:42:02 (Std)    ---- CEGUI GUIScheme name: TaharezLook
06/01/2013 00:42:02 (Std)    Started creation of Imageset from XML specification:
06/01/2013 00:42:02 (Std)    ---- CEGUI Imageset name: TaharezLook
06/01/2013 00:42:02 (Std)    ---- Source texture file: TaharezLook.tga in resource group: (Default)
06/01/2013 00:42:02 (Std)    Started creation of Font from XML specification:
06/01/2013 00:42:02 (Std)    ---- CEGUI font name: DejaVuSans-10
06/01/2013 00:42:02 (Std)    ----       Font type: FreeType
06/01/2013 00:42:02 (Std)    ----     Source file: DejaVuSans.ttf in resource group: (Default)
06/01/2013 00:42:02 (Std)    ---- Real point size: 10
06/01/2013 00:42:02 (Std)    ===== Falagard 'root' element: look and feel parsing begins =====
06/01/2013 00:42:02 (Std)    ===== Look and feel parsing completed =====
06/01/2013 00:42:02 (Std)    No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Button' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Button' added. (005644D8)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Default' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Default' added. (00564580)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Editbox' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Editbox' added. (00564970)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/FrameWindow' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/FrameWindow' added. (00564A18)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ItemEntry' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ItemEntry' added. (00564AC0)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ListHeader' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ListHeader' added. (00564B68)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ListHeaderSegment' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ListHeaderSegment' added. (00564C10)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Listbox' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Listbox' added. (00564CB8)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Menubar' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Menubar' added. (00564D60)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/MenuItem' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/MenuItem' added. (07976180)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/MultiColumnList' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/MultiColumnList' added. (07976228)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/MultiLineEditbox' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/MultiLineEditbox' added. (079762D0)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/PopupMenu' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/PopupMenu' added. (07976378)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ProgressBar' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ProgressBar' added. (07976420)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ScrollablePane' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ScrollablePane' added. (079764C8)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Scrollbar' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Scrollbar' added. (07976570)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Slider' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Slider' added. (07976618)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Static' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Static' added. (079766C0)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/StaticImage' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/StaticImage' added. (07976768)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/StaticText' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/StaticText' added. (07976810)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/SystemButton' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/SystemButton' added. (079768B8)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/TabButton' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/TabButton' added. (07976960)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/TabControl' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/TabControl' added. (07976A08)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Titlebar' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Titlebar' added. (07976AB0)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ToggleButton' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ToggleButton' added. (07976B58)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Tooltip' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Tooltip' added. (07976C00)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/ItemListbox' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/ItemListbox' added. (07976CA8)
06/01/2013 00:42:02 (Std)    Created WindowRendererFactory for 'Falagard/Tree' WindowRenderers.
06/01/2013 00:42:02 (Std)    WindowRendererFactory 'Falagard/Tree' added. (07976D50)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/Checkbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/ImageButton' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' Look'N'Feel 'TaharezLook/RadioButton' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' Look'N'Feel 'TaharezLook/FrameWindow' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' Look'N'Feel 'TaharezLook/Titlebar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/Button' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/Editbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' Look'N'Feel 'TaharezLook/MultiLineEditbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' Look'N'Feel 'TaharezLook/Menubar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' Look'N'Feel 'TaharezLook/PopupMenu' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' Look'N'Feel 'TaharezLook/MenuItem' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/AltProgressBar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/ProgressBar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' Look'N'Feel 'TaharezLook/VUMeter' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/VerticalScrollbar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/HorizontalScrollbar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/VerticalScrollbarThumb' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' Look'N'Feel 'TaharezLook/LargeVerticalScrollbar' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' Look'N'Feel 'TaharezLook/TabButton' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' Look'N'Feel 'TaharezLook/TabControl' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabContentPane' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/TabButtonPane' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/ComboDropList' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' Look'N'Feel 'TaharezLook/ComboEditbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Combobox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' Look'N'Feel 'TaharezLook/Listbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' Look'N'Feel 'TaharezLook/ListHeader' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' Look'N'Feel 'TaharezLook/ListHeaderSegment' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' Look'N'Feel 'TaharezLook/MultiColumnList' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' Look'N'Feel 'TaharezLook/Slider' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' Look'N'Feel 'TaharezLook/SliderThumb' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' Look'N'Feel 'TaharezLook/ScrollablePane' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/Spinner' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' Look'N'Feel 'TaharezLook/Tooltip' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' Look'N'Feel 'TaharezLook/StaticImage' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' Look'N'Feel 'TaharezLook/StaticText' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' Look'N'Feel 'TaharezLook/ItemListbox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' Look'N'Feel 'TaharezLook/ListboxItem' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' Look'N'Feel 'TaharezLook/GroupBox' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' Look'N'Feel 'TaharezLook/Tree' and RenderEffect ''. (0028CAE0)
06/01/2013 00:42:02 (Std)    Started creation of Imageset from XML specification:
06/01/2013 00:42:02 (Std)    ---- CEGUI Imageset name: Pointer
06/01/2013 00:42:02 (Std)    ---- Source texture file: Pointer.png in resource group: (Default)
06/01/2013 00:42:02 (Std)    ---- Successfully completed loading of GUI layout from 'MainMenu.layout' ----
06/01/2013 00:42:02 (Std)    Attempting to create Imageset 'DejaVuSans-10_auto_glyph_images_ ' with texture only.
06/01/2013 00:42:02 (Std)    ---- Successfully completed loading of GUI layout from 'InfoHUD.layout' ----
06/01/2013 00:42:02 (Std)    ---- Successfully completed loading of GUI layout from 'CamInfo.layout' ----
06/01/2013 00:42:02 (Std)    ---- Successfully completed loading of GUI layout from 'InGame.layout' ----
06/01/2013 00:42:02 (Std)    ---- Successfully completed loading of GUI layout from 'Warning.layout' ----


What do I need to do to get the layouts show up the same way in all resolutions? Thanks in advance.

Re: Messed up text above a certain resolution

Posted: Sun Jan 06, 2013 01:24
by Kulik
You must likely don't understand how UDims work :-) Post your layout.

Re: Messed up text above a certain resolution

Posted: Sun Jan 06, 2013 12:19
by N_K
Here's the one for the FPS/Poly/Batch counter:

Code: Select all

<GUILayout>
    <Window Name="InfoHUD" Type="DefaultWindow">
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,-640},{1,-555}}" />
        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
        <Window Name="InfoHUD/FPSLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{1,-130},{1,-30}}" />
            <Property Name="Text" Value="FPS:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="InfoHUD/TrianglesLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,15},{1,-95},{1,-15}}" />
            <Property Name="Text" Value="Triangles:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="InfoHUD/BatchesLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,30},{1,-95},{1,0}}" />
            <Property Name="Text" Value="Batches:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="InfoHUD/FPSValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,30},{0,0},{1,0},{1,-30}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="InfoHUD/TrianglesValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,65},{0,15},{1,0},{1,-15}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="InfoHUD/BatchesValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,65},{0,30},{1,0},{1,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
    </Window>
</GUILayout>


And here's the one for the camera info:

Code: Select all

<GUILayout>
    <Window Name="CamInfo" Type="DefaultWindow">
        <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{0.975,-550},{0.883333,-410}}" />
        <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
        <Window Name="CamInfo/RLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.875,0},{0.26087,0},{1,0}}" />
            <Property Name="Text" Value="camRoll:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PZValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.173913,0},{0.25,0},{1,0},{0.375,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PZLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.25,0},{0.173913,0},{0.375,0}}" />
            <Property Name="Text" Value="posZ:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PYValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.173913,0},{0.125,0},{1,0},{0.25,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PYLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.125,0},{0.173913,0},{0.25,0}}" />
            <Property Name="Text" Value="posY:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PXValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.173913,0},{0,0},{1,0},{0.125,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/PXLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0,0},{0.173913,0},{0.125,0}}" />
            <Property Name="Text" Value="posX:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OZLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.75,0},{0.26087,0},{0.875,0}}" />
            <Property Name="Text" Value="orientZ:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OYLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.625,0},{0.26087,0},{0.75,0}}" />
            <Property Name="Text" Value="orientY:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OXValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.26087,0},{0.5,0},{1,0},{0.625,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OXLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.5,0},{0.26087,0},{0.625,0}}" />
            <Property Name="Text" Value="orientX:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OWValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.26087,0},{0.375,0},{1,0},{0.5,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OWLabel" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0,0},{0.375,0},{0.26087,0},{0.5,0}}" />
            <Property Name="Text" Value="orientW:" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OYValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.26087,0},{0.625,0},{1,0},{0.75,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/OZValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.26087,0},{0.75,0},{1,0},{0.875,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
        <Window Name="CamInfo/RValue" Type="TaharezLook/StaticText">
            <Property Name="UnifiedAreaRect" Value="{{0.26087,0},{0.875,0},{1,0},{1,0}}" />
            <Property Name="UnifiedMaxSize" Value="{{1,0},{1,0}}" />
            <Property Name="FrameEnabled" Value="False" />
            <Property Name="BackgroundEnabled" Value="False" />
            <Property Name="WantsMultiClickEvents" Value="False" />
        </Window>
    </Window>
</GUILayout>


Both of these were designed and generated by the latest CEED snapshot.

Re: Messed up text above a certain resolution

Posted: Wed Jan 09, 2013 20:44
by N_K
Sorry for bumping this, but after looking up UDims at the wiki and looking at the official CEGUI samples, I still don't know what's wrong with my app. After creating my window from the layout file, I use this code to set the window's position:

Code: Select all

gInfoWnd->setPosition(CEGUI::UVector2(CEGUI::UDim(0.01, 0),CEGUI::UDim(0.01, 0)));

So what's wrong with this? Image based widgets look fine in all resolutions, and I set their position the same way, so I don't know why doesn't this work with text widgets.

Re: Messed up text above a certain resolution

Posted: Sun Jan 13, 2013 17:01
by N_K
The problem apparently is not in the layout file, as the text is still wrong at 1024x768 when I load any of the layouts that comes with the CEGUI samples.

Now I believe no one answers because I'm not posting enough code, so here we go, I tried my best to extract the layout loading/displaying part.

First, the render system is created:

Code: Select all

gRenderer = &CEGUI::OgreRenderer::bootstrapSystem(*m_pRenderWnd);
(gRenderer is a pointer to CEGUI::OgreRenderer, m_pRenderWnd is a custom Ogre render window. Custom as not suing the automated config parsing and window creation, but created manually to disable resizing and the maximize button.)

Then, the resource groups are set up, here's the part for the layouts and fonts:

Code: Select all

CEGUI::WindowManager::setDefaultResourceGroup("Layouts");
CEGUI::Font::setDefaultResourceGroup("Fonts");


Here we create a pointer to CEGUI::System:

Code: Select all

gSystem = CEGUI::System::getSingletonPtr();
(gSystem is the pointer to CEGUI::System. Well, this sentence was completely unnecessary...)

Now the default LookNFeel is loaded, along with the DejaVuSans font:

Code: Select all

CEGUI::SchemeManager::getSingleton().create("TaharezLook.scheme");   
CEGUI::FontManager::getSingleton().create("DejaVuSans-10.font");


And here we load the layout itself:

Code: Select all

CEGUI::WindowManager::getSingleton().loadWindowLayout((CEGUI::utf8*)"MainMenu.layout");
(The layout itself is not important, since as mentioned before, even the official demo layouts suffer from the font problem.)

Now we jump over the menu state, and display our layout:

Code: Select all

CEGUI::Window* pMainWnd = CEGUI::WindowManager::getSingleton().getWindow("MainMenuWindow");
OgreFramework::getSingletonPtr()->gSystem->setGUISheet(pMainWnd);
(MainMenuWindow is the name of the window from the layout I'm about to display, but again, this doesn't matter much.)

So here we go, that's all I can post, and pretty much the way all the tutorials say it should be done. Although this code snippet is for the main menu, not for the screenshots above, all the layouts are affected by the same font problem, no matter if they are just text like in the screenshots, or window titles/button labels/whatever.

Re: Messed up text above a certain resolution

Posted: Mon Jan 14, 2013 09:04
by CrazyEddie
I don't know for sure, since I did not analyze your layout and what not in huge detail, but this could be an issue of window positioning and text alignment - i.e if your windows end up large and overlapping at the higher resolution and the text is centred in the window vertically, then the result can be what you see in your screenshot.

Check the window layout at various resolutions in CEED - see if the window overlap at the higher resolutions. If they do, I suggest fixing that. Other than that, at least make the text alignment so it's drawn at the top of the window.

CE.

Re: Messed up text above a certain resolution

Posted: Mon Jan 14, 2013 22:09
by N_K
Thanks for your reply.

After enabling the frames of the static text element, it seems that they are stretched vertically when in higher resolution than 800x600.

Now I don't know what exactly is the purpose of all of this unified dimension/native resolution system, but is ther a way to override it? I mean, if I create a 128x128 pixels large widget, and I position it at 10, 10 (screen coordinates in pixels), why can't it just stay 128x128 pixels large and stay at 10, 10, regardless of the resolution?

Re: Messed up text above a certain resolution

Posted: Tue Jan 15, 2013 10:26
by Kulik
YES!

As I said several thousand posts above, read the docs about how Unified Dimensions work!

UDim(0, 123) is exactly 123 pixels.

Re: Messed up text above a certain resolution

Posted: Tue Jan 15, 2013 14:16
by N_K
Kulik wrote: [...] read the docs about how Unified Dimensions work!

I did, but...

Kulik wrote:UDim(0, 123) is exactly 123 pixels.

...this doesn't seem to work. No matter where I position my widget, when the screen resolution is larger than CEED's "native resolution", they will be stretched vertically (while retaining their horizontal position), and will NOT be stretched horizontally, but their vertical position will be completely ignored for some reason.

And there's not much info about what is that "native resolution", nor is it referenced anywhere in the layout file, so I'm completely lost.

But no problem, as I just abandoned my idea to put together my own game engine using Ogre, CEGUI, and Bullet, I'm simply too inexperienced to do this. I decided to go with a complete game engine instead, so I can focus on the actual game code.

Thanks for trying to help, anyway. :wink: