Skip to content

Navigation Menu

Sign up
Garima Dhakal edited this page Jun 16, 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 Builder (ADB)

We can use Android Debug Builder (ADB) Tool that comes with Android SDK to communicate with the Android device. ADB is command line tool and is located in /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.
  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");

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /