Skip to content

support Khmer Os Battamang font for libgdx using BitmapFont (will support some other fonts if someone asks), please give me a star if it could help you!

Notifications You must be signed in to change notification settings

nguyennd97/libgdx-free-khmer-font

Repository files navigation

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);

About

support Khmer Os Battamang font for libgdx using BitmapFont (will support some other fonts if someone asks), please give me a star if it could help you!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages