Web标准字体中的Unicode支持 [英] Unicode support in Web standard fonts

查看:122
本文介绍了Web标准字体中的Unicode支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要决定是否将网页GUI中的几何符号(例如按钮,菜单等的箭头和三角形)渲染为Unicode符号(更简单且与颜色无关)或GIF / PNG文件(很多麻烦I想要避免)。



但是,我发现客户端在显示高级标点符号时遇到问题,即使用Unicode标识符( Example )。



有人知道OS / Service包/应用程序附带Unicode版本的标准字体?例如,微软的Office随附的 Arial unicode 自1999年以来,我没有安装办公室,而且我的Arial至少还有一些Unicode范围。



另外,Mac OS和Linux的情况如何?

有人可以指点我一些综合资源在这 - 报告,列表,概述?

解决方案

没有真正的字体的Unicode版本 *)。 Arial Unicode是一个误导性的名称:它与普通的Arial没有本质区别,它只是有更多的字符。它没有包含可用的字形,用于目前定义的成千上万个字符中的每一个字符,并且确实没有一个操作系统标准字体。



显着问题仅仅是您要使用的字符是否具有常用部署操作系统的默认字体中的字形。您需要查看您希望单独使用的特定字符的字体支持。



您提到的字符U + 0360 Combining Double Tilde并非真正的'高级标点符号,这是一个用于语音工作的好奇且很少使用的变音符号。所以对它的字体支持很差并不奇怪。另一方面,Stack Overflow可以避免使用U + 25CF黑色圆圈(●),因为很多字体都有。几何图形块中的一些其他字符,例如U + 25B2黑色上指三角形(▲)也很常见。

fileformat.info有一个列表支持每个字符的常用字体,因此您可以在使用它作为图像的替代品之前检查该字体以了解符号的广泛支持情况,以及您识别的默认OS字体是否存在。例如 U + 25CF 有许多字体,但 U + 0360 没有那么好的支持:没有默认的Windows安装字体在那里,'Libertine'字体显示它错误。



(*:好的,有一种类似于Unicode字体的东西,在一个字体的内部字符查找表可以用Unicode或其他字符集来命名,但这并没有什么实际意义,因为应用程序总是将它作为Unicode来寻址;操作系统会在查找时透明地进行转换。)


I need to decide whether to render geometric symbols in a web GUI (e.g. arrows and triangles for buttons, menus, etc.) as Unicode symbols (MUCH easier and color-independent) or GIF/PNG files (lots of hassle I would like to avoid).

However, I have seen clients that have trouble displaying even advanced punctuation symbols declared as unicode characters (Example).

Does anybody know from which version on, OSs / Service Packs / Applications ship with Unicode versions of the standard fonts? There is, for example, Microsoft's Arial unicode that ships with Office since 1999, however I do not have office installed and still my Arial has at least some of the Unicode range.

Also, what is the situation with Mac OS and Linux?

Could somebody point me towards some comprehensive resources on this - reports, lists, overviews?

解决方案

There's not really such a thing as a "Unicode version" of a font(*). "Arial Unicode" is a misleading name: it's not materially different to normal "Arial", it just has some more characters in it. It does not contain usable glyphs for every single one of the tens of thousands of characters defined so far, and indeed there is no one OS standard font that does.

The significant question is merely whether the characters you want to use have glyphs in the default fonts of commonly-deployed operating systems. You need to look to look at font support for particular characters you wish to use on an individual basis.

The character U+0360 Combining Double Tilde you mentioned is not really ‘advanced punctuation’, it's an curious and rarely-used diacritical mark for phonetics work. So it's not really surprising that font support for it is poor. On the other hand, Stack Overflow can get away with using U+25CF Black Circle (●) because lots of fonts have it. Some of the other characters from the Geometric Shapes block such as U+25B2 Black Up-pointing Triangle (▲) are also pretty common.

fileformat.info has a list of common fonts that support each character, so you can check there to get a feel of how widely supported a symbol is, and whether the default OS fonts you recognise are present, before using it as a replacement for an image. For example U+25CF is in many fonts, but U+0360 isn't that well-supported: none of the default Windows install fonts are there, and the ‘Libertine’ font renders it badly wrong.

(*: OK, there is sort of such a thing as a Unicode font, in that a font's internal character lookup tables may be denominated in Unicode or some other character set. However this makes no practical difference as the application will always be addressing it as Unicode; the OS will do the conversion on lookup transparently.)

这篇关于Web标准字体中的Unicode支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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