Bitmap pixel fonts appear blurry in-game (DEF-3855) (SOLVED)

#1

To achieve pixel-perfect text, I take a bitmap font and set its material to use nearest texture filtering:


I apply the same sampler to the label’s material as well.

This technique worked fine in earlier versions of Defold. However, in the latest version, the fonts render crisply in the editor but appear blurry in the actual build (on Windows & Android):

0 Likes

#2

Do you have shadow blir size and/or outline width set to something other than zero?

0 Likes

#3

Using these font settings:

0 Likes

#4

I have noticed that bitmap fonts are quite buggy myself.

Font settings - file

2019-03-09%2000_04_16-Window

Font settings - in gui

2019-03-09%2000_06_12-Window

Editor

2019-03-09%2000_04_02-Window

In game

2019-03-09%2000_05_10-Window

So the font doesn’t have any outline attribute but it clearly have a red outline.


Changing outline alpha to 0 on the gui text node is the only way to get rid of it.

Font settings - in gui

2019-03-09%2000_06_24-Window

Editor

2019-03-09%2000_06_33-Window

In game

2019-03-09%2000_06_50-Window

1 Like

#5

I have had good results with BMFont for generating and using bitmap fonts BMFont example + notes

0 Likes

#6

1.2.155 fixed the issue :slight_smile:

6 Likes