Paolo
Posts: 0
Joined: Thu Apr 12, 2012 9:51 am

Font-family in css file

Hi,
how can I add a font-family MyriadPro in css file?
thanks

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Font-family in css file

You would specify the font like in any other CSS file.

Paolo
Posts: 0
Joined: Thu Apr 12, 2012 9:51 am

Font-family in css file

you mean like that?

@font-face{
font-family: "MyriadPro";
src: url("../fonts/MYRIADPRO-REGULAR.OTF") format("truetype");
}

#divExample {
font-family: "MyriadPro";
.....
}

but in this case where can I upload the OTF file?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Font-family in css file

You could host the file somewhere on the Internet.

Return to “Issues”