installing fonts in client machine
I'm building a website(PHP) with chinese fonts. The problem is most browsers doesn't have chinese fonts installed by default. I want the client machine to have this font installed to view the webpage.
How can I do this?
Edit:
I've partially solved the problem with this website : http://www.font2web.com/
it works in IE and FF but not in webkit browsers.开发者_高级运维 Do i need to do some css hack for webkit browsers?
Most computers today have unicode fonts installed, so as long as you're HTML is encoded for your target language, you should be OK.
You say most browsers don't have Chinese fonts installed. I beg to differ -- I don't generally browse chinese sites, but when I have done (or when there have been Chinese comments in an English forum), I've always seen the Chinese characters. Same goes for other scripts such as Russian.
Maybe there's more to it than that, but that has been my experience ever since Windows XP, including Windows 7 and also various Linux desktops.
In any case, I would say it's even more likely that anyone who can read Chinese would have the appropriate fonts installed. And anyone who can't read chinese probably won't affected by not having them render properly.
This might solve your problem http://www.css3.info/preview/web-fonts-with-font-face/ , font-face is allowed in css3, you don't need to install fonts on clients machine
http://alexandermp.com/post/2010/07/10/Your-favorite-custom-fonts-in-your-webpage.aspx
This page explains all known methods how to make fonts show on a client browser.
well, i updated my chrome to the latest version and this code:
@font-face {
font-family: 'bloodrev';
src: url('fonts/bloodrev.eot');
src: local('?'), url('fonts/bloodrev.woff') format('woff'), url('fonts/bloodrev.ttf') format('truetype'), url('fonts/bloodrev.svg') format('svg');
font-weight: normal;
font-style: normal;
}
is all it takes to display my custom font in IE, FF and chrome. I've not tested in Safari yet.
Thanks for your replies and suggestions.
If you look in this link you will have a huge description of every charset you can use. Besides, sites like cn.china.cn use the following content type:
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
Just use this and you will have this rendered with no problem ;)
Hope that helps,
精彩评论