2015-10-20 150 views

回答

2

,最簡單的方法去實現它使用Hiero,它是漸變的效果

enter image description here

您正在生成兩個文件與此:

  • .FNT與字體定義
  • .png帶有字體紋理

您正在使用生成的字體一樣

BitmapFont font = new BitmapFont(Gdx.files.internal("font.fnt")); 
+0

雅,我知道這一點。但我不喜歡使用它,因爲當我想縮放字體時,它會失去分辨率。我的評論是正確的或錯誤的。 – Crowni

+0

您是否嘗試過設置texturefilter? 'BitmapFont字體; \t \t font.getRegion()。getTexture()。setFilter(TextureFilter.Linear,TextureFilter.Linear);' –

+0

Cool Cool。我將用'Hiero'將D代碼中的代碼中的所有標籤更改爲'BitmapFont'。但我想回答我,爲什麼'FreeType'擴展名存在,只要hiero使所有這些?每個人的優點是什麼? – Crowni