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
Post a Comment