0

I follow this link InternationalFontsTest.java and I want to use Bitmapfont koreanFont add to Item SelectBox (Scene2d.ui). Thank you.

NoNaMe
  • 6,020
  • 30
  • 82
  • 110

1 Answers1

0

Same as you set it up any style:

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 }
},
}

Not sure how you would create the actual bitmap itself, I don't think hiero can do that but I could be wrong.

Madmenyo
  • 8,389
  • 7
  • 52
  • 99