Using Khmer Wrapper to solve libgdx Khmer font issue.
- Copy font khmerOsBattamang-64-full.fnt, khmerOsBattamang-64-full.png and KhmerWrapper.java to your project
- Use KhmerWrapper.wrap to wrap String before put it in Widget.
Here is an example code:
BitmapFont font = new BitmapFont(Gdx.files.internal("khmerOsBattamang-64-full.fnt"));
font.draw(batch, KhmerWrapper.wrap("ឥឦឧឨឩឪឫឬឭឮឯឰឱឲឳ"), 50, 430);