Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 556 Bytes

Readme.md

File metadata and controls

15 lines (10 loc) · 556 Bytes

Free Libgdx Font for Khmer Script

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.

Example

Here is an example code:

BitmapFont font = new BitmapFont(Gdx.files.internal("khmerOsBattamang-64-full.fnt"));
font.draw(batch, KhmerWrapper.wrap("ឥឦឧឨឩឪឫឬឭឮឯឰឱឲឳ"), 50, 430);