Code:
@font-face {
font-family: "MyFont";
src: url( "not-bold-font.ext" );
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "MyFont";
src: url( "is-bold-font.ext" );
font-weight: bold;
font-style: normal;
}
div { font-family: MyFont, Arial; font-weight: bold; }
That is how you setup font variations (bold, italic) with @font-face, they must all have the same font-family name along with font-weight and font-style dictating the type of variant. Btw, programs do not actually bold fonts, the swap a non-bold font for a bold variant version. In some cases if no bold varuant is available for the current font it swaps to a font, that may or may not look like it, that has bold variant.
Bookmarks