Why are these artifacts showing up with nearest neighbor filtering?

Here is a label sample with a font with nearest neighbor material set

At 1:1 scale

1

With the window made much larger

2

To make it more obvious

What could be causing this?

Is it a distance field font?
I can think of two things:

  1. Free fonts are rarely perfect, and often have weird artifacts in corners, because they don’t test the font enough.
  2. We only have 1 channel to express the distance. This can produce artefacts

If it’s 1, you can switch font. If it’s 2, we would need to update our font generation to use two channels.

1 Like

This test was with normal bitmap font with nearest neighbor filtering only.

I switched to a distance field method with some custom fp (smoothing forced to 0) and it seems to work better in some ways others not. Will do more tests and report what is working best.

I’ll have to check the font in a font editing tool to see if it has any irregularities which may be causing it.

Ok, the bitmap is probably not 100% black at those areas (see my remark about quality of fonts in general), thus allowing for “bleeding”.

1 Like