UI 字体和语言
我正在开发一个多语言 Web 应用程序,它具有漂亮的 UI。我想使用 CSS 3 的 font-face 属性来使其 UI 更好,但我不确定这是否是一个好主意。据我交谈过的一些人说,不同的语言需要不同的字体。这意味着没有一种字体可以显示所有语言的字符,因为相同的字符在不同语言中可能看起来不同。
例如,根据 Wikipedia,Unicode 代码点 U+4EE4 在韩语和日语中看起来不同语言。
所以我的问题是,将字体包含在语言包中或 UI 主题中是否最有意义?
I am developing a multilingual web application that has a nice looking UI. I thought using CSS 3's font-face property to make it even nicer UI, but I'm not really sure if that's a good idea. According to some people I have talked to, different languages need different fonts. This means that there is no single font that can display characters of all languages, because the same character may look different across languages.
For example, according to Wikipedia, the Unicode code point U+4EE4 looks different in Korean and Japanese languages.
So my question is, would it make most sense to contain the fonts within the language packs -- or within the themes of my UI?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您要使用多种语言,请使用
lang
或xml:lang
属性向浏览器正确调出文本片段或页面的语言,并让浏览器决定正确的字体。这应该比尝试从 CSS 中执行此操作更可靠。If you're going multi-language, use the
lang
orxml:lang
attributes to properly call out the language of a text snippet or the page to the browser and let the browser decide the proper font. This should work much more reliable than trying to do this from CSS.