Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
454 views
in Technique[技术] by (71.8m points)

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.8k users

...