统一code字在Android上不显示 [英] Unicode character on Android not displaying

查看:192
本文介绍了统一code字在Android上不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发使用响应式设计网站。我想显示UNI code字符和放大器;#9776(该☰符号),并且它没有出现在Android上。有没有什么办法让这个人物能正确显示,或做我需要做的图像出来的吗?

I'm developing a website using responsive design. I am trying to display the unicode character &#9776 (the ☰ symbol), and it's not showing up on Android. Is there any way to get this character to display properly, or do I need to make an image out of it?

感谢

推荐答案

记为&AMP中的角色;#9776; 没有出现在Android的字体,它的<一个HREF =htt​​p://www.fileformat.info/info/uni$c$c/char/2630/fontsupport.htm>字体覆盖的相对有限在其他环境中,太

The character denoted by &#9776; does not appear in Android fonts, and its font coverage is relatively limited in other environments, too.

基本的选项是通过使用可下载字体(Web字体)@字体面和使用图像,适当缩放文字大小。

The basic options are using a downloadable font (web font) via @font-face and to use an image, suitably scaled to text size.

如果这是唯一的特殊字符需要时,图像的方法可能是合适的:它是容易的,并且所述字符的形状是如此简单,可以期待具有良好的伸缩性

If this is the only "special" character you need, the image approach might be suitable: it is easy, and the shape of the character is so simple that it can be expected to scale well.

使用可下载的字体可能产生更好的结果,特别是如果该字符被内嵌使用内的文本。但是,你可能会需要一个字体像Quivira或使用symbolA,这是大(> 1兆字节)的免费字体,这似乎意味着不成比例的开销,如果它只是一个字符。

Using a downloadable font may produce better results especially if the character is used inline inside text. But you would probably need a font like Quivira or Symbola, which are large (> 1 Mbyte) free fonts, and this would seem to imply a disproportionate overhead if it’s just for one character.

有关详细信息请参阅我的指导使用特殊字符的HTML

For more info see my Guide to using special characters in HTML.

这篇关于统一code字在Android上不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆