My Font isn't showing up...

I’m using the following code to create a DirectLabel and make it to show some text…

self.avatarLives = DirectLabel(text = self.lives, text_fg = (1, 1, 1, 1), relief = None, text_scale = (0.05, 0.05), text_font= loader.loadFont('GUI/blasteroids.ttf'))

…however I’m getting the following warning…

:text(warning): No definition in empty for character 56 ('8')

…and the text isn’t showing up.

Thanks!!

Since it’s calling the font name “empty” it presumably didn’t find the font file. There is probably another warning earlier about the missing font file.

David

Oh yeah… you are right… Thanks! :blush: