java - libGDX freetypefont artifacts -


when creating bitmapfont in libgdx .ttf file freetypefontgenerator resulting font has serious artifacts around it:

enter image description here

those artifacts appear when using mipmapping, have transparent pixels? have tried adding padding resulting font, not work. tried using linear filtering resulting font looks pixelated.

code using generate fonts:

freetypefontgenerator generator = new freetypefontgenerator(gdx.files.internal("font.ttf"));     freetypefontgenerator.freetypefontparameter parameter = new freetypefontgenerator.freetypefontparameter();     parameter.size = 300;     parameter.color = color.white;     parameter.characters = "0123456789";     parameter.kerning = true;     parameter.magfilter = texture.texturefilter.mipmaplinearlinear;     parameter.minfilter = texture.texturefilter.mipmaplinearlinear;     parameter.genmipmaps = true;  font = generator.generatefont(parameter); 


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -