Browse Source

load built-in font instead of Comic

David Rose 23 years ago
parent
commit
5e4d3afa03
1 changed files with 1 additions and 5 deletions
  1. 1 5
      direct/src/directtools/DirectSession.py

+ 1 - 5
direct/src/directtools/DirectSession.py

@@ -27,11 +27,7 @@ class DirectSession(PandaObject):
         __builtins__["direct"] = self
         # These come early since they are used later on
         self.group = render.attachNewNode('DIRECT')
-        # Set priority to 100 so it always is textured
-        # Call class method to avoid conflict with ToontownLoader
-        self.font = Loader.Loader.loadFont(loader,
-                                           "models/fonts/Comic",
-                                           priority = 100)
+        self.font = TextNode.getDefaultFont()
         self.fEnabled = 0
         self.drList = DisplayRegionList()
         self.iRayList = map(lambda x: x.iRay, self.drList)