mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
add faceIndex to loadFont
This commit is contained in:
parent
4104622e79
commit
eb0f572b3b
@ -91,7 +91,7 @@ class Loader:
|
|||||||
ModelPool.releaseModel(modelPath)
|
ModelPool.releaseModel(modelPath)
|
||||||
|
|
||||||
# font loading funcs
|
# font loading funcs
|
||||||
def loadFont(self, modelPath, priority = 0):
|
def loadFont(self, modelPath, priority = 0, faceIndex = 0):
|
||||||
"""loadFont(self, string)
|
"""loadFont(self, string)
|
||||||
|
|
||||||
This loads a special model that will be sent to a TextNode as
|
This loads a special model that will be sent to a TextNode as
|
||||||
@ -123,7 +123,7 @@ class Loader:
|
|||||||
else:
|
else:
|
||||||
# Otherwise, it must be a new-style, dynamic font. Maybe
|
# Otherwise, it must be a new-style, dynamic font. Maybe
|
||||||
# it's just a TTF file or something.
|
# it's just a TTF file or something.
|
||||||
font = DynamicTextFont(fn)
|
font = DynamicTextFont(fn, faceIndex)
|
||||||
|
|
||||||
return font
|
return font
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user