Installing the font on the server

I developed a PHP project. In this I want to implement the font style in Wendy Medium. But I do not know how to install this font on my server.

Does anyone know how to do this?

Thanks in advance.

+5
source share
5 answers

You can use CSS 3 to use your own fonts in an HTML / PHP page. For this you need to do something like this:

@font-face {
  font-family: WendyMedium;
  src: url(‘path/to/your/font/file.ttf’);
}

You can use this font then with the following line of code:

p { font-family: WendyMedium, Arial, sans-serif; }

Please note that this is only supported by real web browsers (Chrome, Safari, Firefox, etc.). You also need a license to use this font on your website.

+14
source

, - , -, PHP, , -.

, CSS3 ( ) CSS, .

, Yi Yangs, . , Wendy Medium - , : http://www.ascenderfonts.com/font/wendy-lp-family-3-fonts.aspx

+3

wgriffioen: - javascript, - . IE7/8.

+1

:

@font-face {  
    font-family: 'IlMioFont';  
    src: url('ballpark_weiner.eot'); /* IE6+ */  
    src: local('Ballpark'),  
         local('IlMioFont'),  
         url('ballpark_weiner.woff') format('woff'), /* FF3.6 */  
         url('ballpark_weiner.ttf') format('truetype') /* Saf3+,Chrome,Opera10+ */  
    ;  
}
+1

FontSquirrel probably does exactly what you want :) It works with most browsers.

0
source

All Articles