Skip to content

Commit

Permalink
Move fonts to their own directory and remove font scale
Browse files Browse the repository at this point in the history
  • Loading branch information
sercero committed Feb 25, 2024
1 parent a312430 commit c2a4953
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion ogre_mesh_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c2a4953

Please sign in to comment.