开发者

How does Google display a site in different languages?

Can someone please let me know if it is possible to display a site in a language (other than Englis开发者_如何学JAVAh say Chinese) even if the user's system doesn't have that font (Chinese font)? I've seen that in Google. Even if I have the font, still I can see the site in that language. But there are certain sites which can be read only if the font is installed.


In all the google sites google uses Unicode (UTF-8, UTF-16) fonts which are by default supported by most of the browsers

You can use unicode in your multi language site, This doesn't need any fonts to be installed

 e.g.  सुस्वागतम, 为鄂伦春哦么 


Your question is far from being clear but I suspect that you are interested about CSS3 downloadabel fonts and specially about the fonts hosted by Google at http://www.google.com/webfonts

So if you want to maximize the visibility of Unicode text in your HTML application you must be sure that you serve UTF-8 encoded pages and that your CSS specifies a large set of fonts instead and always keep the fallback generic font last:

font-family: Arial, Helvetica, sans-serif;

In addition you may want to add a CSS3 downloadable font, but from my experience this is not going to help because most browsers will not be able to take advantage of it, especially the ones running on systems with "bad" fonts.

Mainly, you do not care so much, I work on internationalization field so I do have more than average fonts installed on my systems and I remember seeing boxes for some weird languages.

Now if you respect the above recommendations and still have some specific problems, please open a new question and we'll find a way to help you.


http://www.w3.org/TR/css3-fonts/ Section 4.3 shows that you can point to an external location for the font.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜