From eb0f572b3bb6975ec6a550dd647c6b4d0dc83579 Mon Sep 17 00:00:00 2001 From: David Rose Date: Wed, 20 Feb 2002 23:24:58 +0000 Subject: [PATCH] add faceIndex to loadFont --- direct/src/showbase/Loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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