Jump to content

font face problems


denno020

Recommended Posts

I was just wondering how I can specify the different font types for a particular 'base' font. The problem I'm having is that I have set a font for my body text. For bold text I've set the font for strong tags to be the bold version of the font. I run into problems though when I have two different bits of text with different fonts and some words in bold.. the bold words will only display in the font that is set for strong tags, even if I put a span around the word and change the font for that span.

 

So is there a way that I can specify the bold version of a font?

Something like this:

@font-face {
font-family: myFont;
src: url('myFont.otf');
        strong: url('myFontBold.otf');
        em: url('myFontItalics.otf');
}

 

Any ideas?

 

 

Thanks

Denno

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.