[SOLVED] Labels not appearing?

Hullo, it’s been a while.

So I’ve just noticed a new issue with how my labels just aren’t showing up.
They look fine within the editor:

Yet do not show up in-game:

I’ve tried checking a few things, such as Z positions for clipping (the labels have a cumulative Z position of -0.05, and my camera clips out at 255 and -255), whether or not if the font is the issue (it works just fine in the GUI), whether or not the game objects that the labels are attached to exist (they exist) so I’m not sure where else to check.

It worked just fine before I upgraded Defold from 1.12.1 to 1.12.2, and there has been no changes to how I had the labels coded since then, so I dunno . v ‘

2 Likes

Hi! :waving_hand: :slightly_smiling_face:
Could you create a small reproduction project?

Hi! I’ve had this problem before, where the font works just fine in the editor, but don’t show when I run the game. Turns out I was using the wrong combination of Material and Output format in the Font resource. Hope this helps.

2 Likes

It works! But there is a new issue, where the font now becomes blurry despite turning off antialiasing:

Like so?
not sure why bitmap fonts don’t work.zip (2.7 KB)

I think I might be figuring out what the issue could be, and it’s bitmap fonts just not working I guess

1 Like

Yes, precisely, the issue is that the material for bitmap fonts should be different than for distance field fonts.

When you’ll change the material on you bitmap fonts labels, it’ll work :wink:

It’s explained in the manual in both Distance Field and Bitmap fonts sections:

We’ll try to make it maybe more clear, but many devs discover it in the Editor earlier and I wonder if we could add some kind of warning or something (@vlaaad ?)

2 Likes

Good to know!

I just found it strange because it used to just work without any of those changes before I upgraded to 1.12.2. You learn something new every day! . v ‘

1 Like