Skip to content
Garima Dhakal edited this page Jun 17, 2015 · 9 revisions

#Text Symbol Text Symbols are used to add text on the graphics layer. However, if you want to display text in other language than English, then you may have to change the font family of the text using TextSymbol.setFontFamily() method.

Android Debug Bridge (adb)

We can use Android Debug Bridge (adb) tool that comes with Android SDK to communicate with an Android device. It is command line tool and is located in android_sdk/platform-tools/ path. In order to use adb with a device connected over USB, you must enable USB debugging.

Using fonts

  1. Open Command Prompt and go to the adb path. Command: cd C:\path_to_android_sdk\platform-tools
  2. Start a remote shell in the device. Command: adb shell
  3. Change directory to /system/fonts. Command: cd /system/fonts
  4. View list of available fonts. Command: ls
  5. You can also install new fonts.

Now, you can set font family for the text using TextSymbol class. E.g. TextSymbol.setFontFamily("DroidSansFallback.ttf");


Thanks to Andrew Wang.