What is the best way of installing new font to android emulator?

I know there are many questions regarding font installation on android emulator. I'm sharing the method that worked for me as an answer, if anyone have a better way please share it.


Solution 1:

Whenever android fails to find a specific character it looks to DroidSansFallback.ttf, so what you need to do is replace the DroidSansFallback.ttf of the emulator by renaming a ttf font of your required language to DroidSansFallback.ttf. Do the following steps.

1.Get a market enabled rooted android emulator. You can find one here: Rooted Market Enabled AVD

2.Then grab an explorer app, I prefer root explorer.

3.Rename a free ttf font(which you want to install) to DroidSansFallback.ttf.

4.Create an AVD from the image you downloaded in step 1.

  1. Push DroidSansFallback.ttf to the sdcard of emulator via file explorer in DDMS (I'm using Eclipse Indigo IDE).

  2. Install root explorer (you can use another explorer downloaded via market).

  3. Open root explorer, click mount r/w.

  4. Then go to sd card and copy DroidSansFallback.ttf, then go to system, click mount r/w.

9.Then go to fonts and overwrite the existing DroidSansFallback.ttf.

  1. Then give all permissions to the new DroidSansFallback.ttf from permissions option.

That's it. I used this method to answer a question about Bangla Font Insatallation