diff --git a/direct/src/showbase/Loader.py b/direct/src/showbase/Loader.py index eb8a64c2e5..151f6be79d 100644 --- a/direct/src/showbase/Loader.py +++ b/direct/src/showbase/Loader.py @@ -91,7 +91,7 @@ class Loader: ModelPool.releaseModel(modelPath) # font loading funcs - def loadFont(self, modelPath, priority = 0): + def loadFont(self, modelPath, priority = 0, faceIndex = 0): """loadFont(self, string) This loads a special model that will be sent to a TextNode as @@ -123,7 +123,7 @@ class Loader: else: # Otherwise, it must be a new-style, dynamic font. Maybe # it's just a TTF file or something. - font = DynamicTextFont(fn) + font = DynamicTextFont(fn, faceIndex) return font