html - Are there any way to use custom font file in my site? -


i can use @font-face not work in browsers.

are there way use custom font file in site ?

the @font-face rule should work in modern browsers - ie6+.

the trick ensuring have right syntax , font formats each browser caters to. example:

@font-face {     font-family: 'pt sans';     src: url('fonts/pt_sans-webfont.eot');     src: local('☺'), url('fonts/pt_sans-webfont.woff') format('woff'), url('fonts/pt_sans-webfont.ttf') format('truetype'), url('fonts/pt_sans-webfont.svg#webfonttrshpjcj') format('svg');     font-weight: normal;     font-style: normal; } 

notice have eot, woff, ttf , svg measure. chrome , firefox can use woff , ttf, ie uses svg , eot.

also ensure have each font file's location set correctly.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -