Installing fonts on a client machine

I am creating a website (PHP) with Chinese fonts. The problem is that most browsers do not have Chinese fonts installed by default. I want the client machine to have this font installed to view the web page.

How can i do this?

Edit:

I partially solved the problem with this site: http://www.font2web.com/

It works in IE and FF, but not in webkit browsers. Do I need to do css hacking for web browsers?

+3
source share
6 answers

, HTML , .

+4

, . - , ( ), . , .

, , , Windows XP, Windows 7, Linux.

, , , , , . , , , , .

+3
+1

, :

@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;
}

- , IE, FF chrome. Safari.

.

+1
source

If you look in this link , you will have a huge description of each encoding that you can use. In addition, sites such as cn.china.cn use the following content type:

<meta http-equiv="Content-Type" content="text/html; charset=gbk" />

Just use this and you will get this visualization without any problems;)

Hope this helps,

0
source

Source: https://habr.com/ru/post/1763981/


All Articles