Defold Imported font issue, displays in .gui not in game? (SOLVED)

I’m trying to import my own font, instead of using Vera Bold that Defold comes with.

When I do so it works in the game but when I create the .font (attached) and then add that to myGui’s “Fonts” in the Outline, then select it in my label, it does appear in the gui preview but not in the actual game (nothing draws in the game) … if I switch back to the default font it draws fine. What am I missing here?

Defold 2 (latest)

chela-one.zip (21.9 KB)

Could you tell us more about your setup? Is the Gui file added to a gameobject in the collection?

Seems to be working for me, added your ttf and font file. Created a label component in the collection, and a text node in the Gui, set both to use your font file:

1 Like

IDE

font

Label

I’ve basically added a gui to the main component of the Linker tutorial… score works fine with ‘dishfont’ (based on vera bold)

Looks like it has some strange Z-value in the position, could you try setting it to 0?

2 Likes

That’s correct. Z=0 put it in front. It’s always strange that + means far to me, but whatever. Thanks

2 Likes