Firemonkey 在 iOS 平台能显示更多的 emoji 字符
2016-01-14 14:29
465 查看
使用 Firmonkey 在显示 emoji 字符时,有些 emoji 并无法显示彩色,见下图:
经查 FMX 源码,是因为判断 emoji 的字符区段不足造成的,经过修改后,便可显示,见下图:
修改方法:
如果需要其它 emoji 字符区段,请查阅下方网站,自行加入。
emoji 字符参考:
http://unicode.org/emoji/charts/full-emoji-list.html
http://emojipedia.org/apple/ios-9.1/
http://www.unicode.org/Public/emoji/2.0//emoji-data.txt
经查 FMX 源码,是因为判断 emoji 的字符区段不足造成的,经过修改后,便可显示,见下图:
修改方法:
将 FMX.FontGlyphs.iOS.pas 复制到自己的工程目录下。 找到 function TIOSFontGlyphManager.DoGetGlyph 修改下面代码: LImageChar := ((Char >= $1F0A0) and (Char <= $1F0FF)) or ((Char >= $1F300) and (Char <= $1F5FF)) or ((Char >= $2196) and (Char <= $2199)) or // <---- 加入此行,此区段是箭头符号 "↖↗↘↙" 区段 ((Char >= $1F600) and (Char <= $1F64F)) or ((Char >= $1F680) and (Char <= $1F6FF)) or ((Char >= $1F700) and (Char <= $1F77F));
如果需要其它 emoji 字符区段,请查阅下方网站,自行加入。
emoji 字符参考:
http://unicode.org/emoji/charts/full-emoji-list.html
http://emojipedia.org/apple/ios-9.1/
http://www.unicode.org/Public/emoji/2.0//emoji-data.txt
相关文章推荐
- iOS开发之使用lipo命令制作模拟器与真机通用静态库
- 修改searchBar搜索框的删除按钮颜色值
- iOS之汉字转拼音
- iOS导航栏设置
- 2015移动开发之iOS回顾
- iOS 获取缓存大小 清除缓存
- IOS中xib+代码实现自定义cell中嵌套
- iOS ERROR: unable to get the receiver data from the DB 解决方式
- iOS 企业账号申请
- 网上下载的ios开源有签名---更改为自己的签名方法-----sign----ios---签名---证书
- JSPatch – 动态更新iOS APP
- iOS 中 new 和 alloc init 的区别
- 如何调试 SDWebImage,使用前的准备工作
- ios 首先获取系统当前时间:
- iOS NSDate(一)
- iOS中json解析出现的null,nil,NSNumber的问题
- 获取IOS设备是Iphone几
- ios开发小技巧
- iOS晃动手势
- iOS的View之间的数据传递