开发者

UI fonts and languages

开发者 https://www.devze.com 2022-12-25 01:13 出处:网络
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. Accord

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 Japane开发者_开发知识库se 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?


If you're going multi-language, use the lang or xml: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.

0

精彩评论

暂无评论...
验证码 换一张
取 消