android - 将新字体安装到 Android 模拟器的最佳方法是什么?

标签 android android-emulator android-fonts

我知道关于 Android 模拟器上的字体安装有很多问题。我将分享对我有用的方法作为答案,如果有人有更好的方法,请分享。

最佳答案

当 android 无法找到特定字符时,它会查找 DroidSansFallback.ttf,因此您需要做的是通过重命名来替换模拟器的 DroidSansFallback.ttf将所需语言的 ttf 字体添加到 DroidSansFallback.ttf。执行以下步骤。

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.

就是这样。 我用这个方法回答了一个关于Bangla Font Insatallation的问题

关于android - 将新字体安装到 Android 模拟器的最佳方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10487976/

相关文章:

android - 移除没有放在backstack上的 fragment

Android - 使用自定义字体

android - 设置回退字体 android 应用程序

android - 为锤头 (Nexus 5) 构建 android 5.0

android - 如何让我的 Android 应用程序充当 Beacon?

android - API < 11 上的 getWindow().hasFeature()

android - 全新安装 Android Studio + 模拟器,模拟器吃 CPU + 电池

android - 为什么 "adb install (my APK)"触发 "can' t 查找服务 : package"?

共享库中静态库的 Android NDK 调用 API

android - 无论设备字体大小或屏幕密度如何,如何保持字体大小不变