java - libGDX freetypefont artifacts -
when creating bitmapfont
in libgdx .ttf file freetypefontgenerator
resulting font has serious artifacts around it:
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
Post a Comment