首先感谢国外的大神angelsel 的文章http://forum.xda-developers.com/showthread.php?t=2563757
和公司UI 设计师迟迟的帮助。
步骤介绍:
- fonttools-master 功能强大的生成与解析字体文件的工具(ttx 与ttf 互转工具) 安装方法:python setup.py install
- sbix_demo与sbix_code 从含有sbix表的字体(Apple Color Emoji.ttf)(apple)中解析出png图片的工具, 使用方法: 直接更改 extractSbixImages.py脚本中的字体路径,然后python extractSbixImages.py
- emoji-extractor-master 从含有CBDT&CBDT表的字体中(NotoColorEmoji.ttf)(android4.4)中解析出png图片的工具,使用方法: 更改脚本emoji_extractor.rb路径 然后执行 ruby emoji_extractor.rb
- color-emoji-master1 把彩色png的图压入字体中。使用方法:参见examples中创建相应的Makefile 与字体模版,然后直接make就可以了。
资源下载:
- 从apple系统中提取的字体文件http://download.csdn.net/detail/zhangjizxc/6899871
- 从apple Color Emoji中解析出来的png图片 http://download.csdn.net/detail/zhangjizxc/6899881
- 上述工具集合http://download.csdn.net/detail/zhangjizxc/6899921
- 已经生成好的用于android4.4的彩色emoji的字体文件。http://download.csdn.net/detail/zhangjizxc/6899907
- Emoji与Unicode对照表:http://apps.timwhitlock.info/emoji/tables/unicode
生成好的字体文件的使用方法(基于Android4.4):
To install:
- Grab AppleColorEmoji.ttf and place it into /system/fonts/
- Set /system/fonts/AppleColorEmoji.ttf to have permissions 644 (rw-r--r--) and owner:group root:root.
- Modify /system/etc/fallback_fonts.xml like so:
- Find
Code:
<family> <fileset> <file>AndroidEmoji.ttf</file> </fileset> </family>
- Above this block, add
Code:
<family> <fileset> <file>AppleColorEmoji.ttf</file> </fileset> </family>
- Find
- Set /system/etc/fallback_fonts.xml to have permissions 644 (rw-r--r--) and owner:group root:root.
- Reboot.