css - Add a font to a website -
i trying add font : http://www.fonts2u.com/vps-dong-da-hoa.font
to website. here css :
@font-face { font-family: "vpsdodah"; src: url(http://localhost/blablabla/wp-content/plugins/buddypress/bp-themes/frisco-for-buddypress/vpsdodah.ttf) format("truetype");} #header h1 { font-family: "vpsdodah";} the url font correct it's not working, can ?
thank much.
not browser support .ttf. use font generator font types ( use font2web ) , add fonts via @font-face:
@font-face { font-family: 'fontname'; src: url('../fonts/fontname.eot'); src: url('../fonts/fontname.eot?iefix') format('eot'), url('../fonts/fontname.woff') format('woff'), url('../fonts/fontname.ttf') format('truetype'), url('../fonts/fontname.svg#fontname') format('svg'); font-weight: normal; font-style: normal; } read here browser font support.
Comments
Post a Comment