1
我有一個libgdx ttf字體生成器的問題。不管我嘗試什麼,我都會看到字體像素化。這就是我現在所擁有的最小化,但使得它仍然可見:Libgdx BitmapFontGenerator字體pixelated
FreeTypeFontGenerator.FreeTypeFontParameter parameter;
FreeTypeFontGenerator generator;
parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();
parameter.minFilter = Texture.TextureFilter.Linear;
parameter.magFilter = Texture.TextureFilter.Linear;
generator = new FreeTypeFontGenerator(Gdx.files.internal(Constants.ROBOTO_CONDENSED_BOLD));
parameter.size = Constants.SELECTION_DESCRIPTION_FONT_SIZE;
parameter.color = Constants.GARAGE_FONT_COLOR;
generator.scaleForPixelHeight(Constants.SELECTION_DESCRIPTION_FONT_SIZE);
descriptionFont = generator.generateFont(parameter);
generator.dispose();
難道我用的相機是854×480每說,但屏幕尺寸爲1920x1080引起pixaltion?