diff --git a/Liberation.fontdef b/fonts/Liberation.fontdef similarity index 100% rename from Liberation.fontdef rename to fonts/Liberation.fontdef diff --git a/LiberationMono-Regular.ttf b/fonts/LiberationMono-Regular.ttf similarity index 100% rename from LiberationMono-Regular.ttf rename to fonts/LiberationMono-Regular.ttf diff --git a/LiberationSans-Regular.ttf b/fonts/LiberationSans-Regular.ttf similarity index 100% rename from LiberationSans-Regular.ttf rename to fonts/LiberationSans-Regular.ttf diff --git a/ogre_mesh_viewer.py b/ogre_mesh_viewer.py index fb37638..88e1f33 100755 --- a/ogre_mesh_viewer.py +++ b/ogre_mesh_viewer.py @@ -516,6 +516,9 @@ def locateResources(self): # explicitly add mesh location to be safe if not rgm.resourceLocationExists(self.filedir, Ogre.RGN_DEFAULT): rgm.addResourceLocation(self.filedir, "FileSystem", Ogre.RGN_DEFAULT) + + # add fonts to default resource group + rgm.addResourceLocation("./fonts", "FileSystem", Ogre.RGN_DEFAULT) def loadResources(self): rgm = Ogre.ResourceGroupManager.getSingleton() @@ -557,7 +560,6 @@ def setup(self): imgui_overlay.addFont("Liberation/Sans", Ogre.RGN_DEFAULT) self.logwin.font = imgui_overlay.addFont("Liberation/Mono", Ogre.RGN_DEFAULT) - self.logwin.font.Scale = round(pixel_ratio) imgui_overlay.show() Ogre.Overlay.OverlayManager.getSingleton().addOverlay(imgui_overlay)