【发布时间】:2015-12-26 11:01:57
【问题描述】:
我点击此链接InternationalFontsTest.java ,我想使用Bitmapfont koreanFont 添加到项目选择框(Scene2d.ui)。
谢谢。
【问题讨论】:
标签: android-studio libgdx scene2d bitmap-fonts
我点击此链接InternationalFontsTest.java ,我想使用Bitmapfont koreanFont 添加到项目选择框(Scene2d.ui)。
谢谢。
【问题讨论】:
标签: android-studio libgdx scene2d bitmap-fonts
和你设置任何样式一样:
com.badlogic.gdx.graphics.g2d.BitmapFont: {
default-font: { file: default.fnt }
korean-font: { file:koreanfont.fnt }
},
com.badlogic.gdx.scenes.scene2d.ui.SelectBox$SelectBoxStyle: {
default: {
font: default-font, fontColor: white, background: default-select,
scrollStyle: default,
listStyle: { font: default-font, selection: default-select-selection }
}
korean: {
font: korean-font, fontColor: white, background: default-select,
scrollStyle: default,
listStyle: { font: korean-font, selection: default-select-selection }
}
},
com.badlogic.gdx.scenes.scene2d.ui.TextField$TextFieldStyle: {
default: { selection: selection, background: textfield, font: default-font, fontColor: white, cursor: cursor }
korean: { selection: selection, background: textfield, font: korean-font, fontColor: white, cursor: cursor }
},
}
不确定如何创建实际的位图本身,我不认为 hiero 可以做到这一点,但我可能错了。
【讨论】: