android 应用使用第三方字体 (瘦身方案)
2015-10-10 12:21
489 查看
在android的开发过程中,难免会使用第三方的字体库,但是一般的字体库文件体积很大,这就使我们的应用“肥胖”;为了达到使用第三方字体库,应用又不会达到“增肥”呢?
不费话了 直接上解决方案(其实方法简单):
1.首先对相应ttf文件进行“瘦身”,使用FontCreater打开ttf文件删除不必要的字符,导出新的字体库文件;(关键)
FontCreater下载地址:http://www.high-logic.com/
2.下面就是导入自己android工程中,方法可以百度一下.有些教程讲得相关详细.本人这里就不多说了.
不费话了 直接上解决方案(其实方法简单):
1.首先对相应ttf文件进行“瘦身”,使用FontCreater打开ttf文件删除不必要的字符,导出新的字体库文件;(关键)
FontCreater下载地址:http://www.high-logic.com/
2.下面就是导入自己android工程中,方法可以百度一下.有些教程讲得相关详细.本人这里就不多说了.
相关文章推荐
- android studio图标
- Android基本游戏循环实例分析
- 使用 buck 打包 Android( 使用OkBuck给Android Studio+gradle生成 buck 脚本)
- android开发学习之路(1)---- activity及intent基本详解(2)
- 10.10笔记,android通知栏兼容性,matches the given name 'android:Widget.Material.Button.Colored'.
- AndroidValidator使用
- AndroidManifest.xml中android:label标签的使用
- Android Studio ,Run Configuration Error:Default Activity not found
- android 自定义view实现水波纹效果
- Android RecyclerView多个Item布局的实现(可实现头部底部)
- Android实战-初探EventBus
- Android实现完整游戏循环的方法
- 一篇简绍android SQLite基础的好文章
- android中ip和hosts地址的获取
- android ndk 提高编译数度(cpu 多核编译)
- 怎么找android应用的包名和启动activity
- Android测量每秒帧数Frames Per Second (FPS)的方法
- android——Snackbar+CoordinatorLayout替代Toast
- Android内存优化之OOM全解
- android中如何实现离线缓存