统一code字在Android上不显示上不、code、Android

2023-09-06 03:25:39 作者:一段情つ莫名旳心痛

我正在开发使用响应式设计网站。我想显示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的字体,它的字体覆盖的相对有限在其他环境中,太

The character denoted by ☰ 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.

 
精彩推荐
图片推荐