Font colour inverted (SOLVED)

Hi all,

Simple question, but I can’t figure out why the colour of the font is inverted.
This is how a character looks like when viewed (double clicking the .ttf file in Defold Editor), which is what I want.
font

However, I am getting this when I Build and Launch (snipped with a bit of the black background)
screen

Setting the color in the text node properties changes the white to the colour.

Other game objects display with the correct colour.

Help is much appreciated, thank you!

Is the font output format set to bitmap or distance field?

It is important to use the correct material corresponding to the output format. There are materials for both types in the builtins folder, font.material for bitmap and font-df.material for distance field.

2 Likes

Hi,

Thank you for the reply.

Found out .ttf can’t be used to achieve what I want (realised .ttf is just opaque/transparent pixels, thought it could do black/white, my bad here!)

Converted to .fnt and all is working well!

Thank you once again!

2 Likes