# Embedded Fonts Linkage problem with CSS

**URL:** <https://forum.kirupa.com/t/embedded-fonts-linkage-problem-with-css/289252>\
**Category:** flash\
**Created:** [May 28, 2009, 1:46am UTC](https://forum.kirupa.com/t/embedded-fonts-linkage-problem-with-css/289252 "2009-05-28T01:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![headinapan](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@headinapan](https://forum.kirupa.com/u/headinapan)\
**Post date:** [May 28, 2009, 1:46am UTC](https://forum.kirupa.com/t/embedded-fonts-linkage-problem-with-css/289252/1 "2009-05-28T01:46:40Z")

</div>

Hey,

I’ve been struggling with an odd issue…

I have embedded all of my different fonts in the library - (ie Regular, Bold, Semibold versions)

When I try to call those fonts via their linkage name from my CSS file, they just don’t appear at all… NO test appears in fact.

I can only get them to appear when I refer to them by their “real” name ie NOT: ChapProSemBold - Only: Chaparral Pro Semibold

I can only get the variations of the font appearing together when embedfonts = false, but then the text looks crappy - even with “antiAliasType = AntiAliasType.ADVANCED”.

When I set embedfonts = true, the type looks good - but I don’t get the variations anymore! I just get the standard font - not my bold or semibold.

Can anyone help?

My CSS is:

```auto

p {
    
    font-size: 14px;
    font-family:Chaparral Pro;
    color: #5F6062;
    line-height:16px;

}

b {
    font-size: 16px;
    font-family:Chaparral Pro Semibold;
    font-weight:bold;
    color: #fbb033;
    }
    

a:link {
    text-decoration: none;
    color: #fbb033;
}
a:hover {
    color: #fbb033;
    text-decoration: none;
}

    

```

And I am calling my CSS in the usual markup:

```auto
var req:URLRequest = new URLRequest("styles/bodyStyle.css");
        loader.load(req);
        //event handlers for loading in CSS loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
        loader.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
        loader.addEventListener(Event.COMPLETE, cssCompleteHandler);

```
