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.
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.
Push DroidSansFallback.ttf to the sdcard of emulator via file explorer in DDMS (I'm using Eclipse Indigo IDE).
Install root explorer (you can use another explorer downloaded via market).
Open root explorer, click mount r/w.
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.
- 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
来源:https://stackoverflow.com/questions/10487976/what-is-the-best-way-of-installing-new-font-to-android-emulator