This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.
You need to link the styles like this (using 4 fonts of FF Din Web Basic Family as an example; regular, italic, bold and bold-italic):
1.
/* first for IE 4–8 */
@font-face {
font-family: DINWeb;
src: url("DINWeb.eot");
}
@font-face {
font-family: DINWeb-Ita;
src: url("DINWeb-Ita.eot");
font-style: italic;
}
@font-face {
font-family: DINWeb-Bold;
src: url("DINWeb-Bold.eot");
font-weight: bold;
}
@font-face {
font-family: DINWeb-BoldIta;
src: url("DINWeb-BoldIta.eot");
font-weight: bold;
font-style: italic;
}
/* then for WOFF-capable browsers */
@font-face {
font-family: DINWeb;
src: url("DINWeb.woff") format("woff");
}
@font-face {
font-family: DINWeb-Ita;
src: url("DINWeb-Ita.woff") format("woff");
font-style: italic;
}
@font-face {
font-family: DINWeb-Bold;
src: url("DINWeb-Bold.woff") format("woff");
font-weight: bold;
}
@font-face {
font-family: DINWeb-BoldIta;
src: url("DINWeb-BoldIta.woff") format("woff");
font-weight: bold;
font-style: italic;
}
body { font-family: DINWeb, sans-serif;}
strong { font-family: DINWeb-Bold; }
em { font-family: DINWeb-Ita; }
strong em,
em strong {font-family: DINWeb-BoldIta; }
2.
And you need to add that to your typography.css file in the root directory of your theme, too, if you want the styles to show up in your TinyMCE editor.
3.
And link the styles in your templates like this:
<link href="<?php echo $this->getThemePath()?>/typography.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php print $this->getStyleSheet('styles.css'); ?>" />
(typography.css gets linked differently and gets linked first)