bold italic font face doesn't show up
Dear List
I am putting the finishing touches on an as3 project (developped in flex for code and flash cs4 to create the UI) and I am running into a mysterious font issue.
1) I am loading in a swf file with the font outlines (empty dynamic textfields with embedded characters on the stage. One text field for each regular / bold / italic / bold italic font styles).
2) I then load the swf and then in order to make sure that all font faces are properly available I list them in the output window with the following function:
-----------------------------------------------------------------------------
private function fontsLoaded(e:Event):void {
// loop through each loaded font and
// output its fontstyle/fontweight and
// font-name
var _arrFonts:Array = fontLoader.fonts;
for each (var _font:Font in _arrFonts) {
var _isBold:Boolean = false;
var _isItalic:Boolean = false;
switch (_font.fontStyle) {
case FontStyle.BOLD:
_isBold = true;
break;
case FontStyle.BOLD_ITALIC:
_isBold = true;
_isItalic = true;
break;
case FontStyle.ITALIC:
_isItalic = true;
break;
}
trace("************ Loaded Font ***************");
trace(" Font Name: " + _font.fontName);
trace(" Font Bold: " + _isBold);
trace(" Font Italic: " + _isItalic);
trace("****************************************");
}
//Dispatch Success
dispatchEvent(new Event(SKFontLoader.LOADING_COMPLETE));
}
-----------------------------------------------------------------------------
3) I get the following output, telling me that everything should be fine:
-----------------------------------------------------------------------------
*********** Loaded Font ***************
Font Name: Verdana
Font Bold: false
Font Italic: false
****************************************
************ Loaded Font ***************
Font Name: Verdana Bold
Font Bold: false
Font Italic: false
****************************************
************ Loaded Font ***************
Font Name: Verdana Italic
Font Bold: false
Font Italic: false
****************************************
************ Loaded Font ***************
Font Name: Verdana Bold Italic
Font Bold: false
Font Italic: false
****************************************
************ Loaded Font ***************
Font Name: Century Gothic
Font Bold: false
Font Italic: true
****************************************
************ Loaded Font ***************
Font Name: Century Gothic
Font Bold: true
Font Italic: true
****************************************
************ Loaded Font ***************
Font Name: Century Gothic
Font Bold: true
Font Italic: false
****************************************
************ Loaded Font ***************
Font Name: Century Gothic
Font Bold: false
Font Italic: false
****************************************
-----------------------------------------------------------------------------
4) Everything is working properly except the Century Gothic Bold Italic and the Century Gothic Italic font faces. I am using an external stylesheets And I have tried the following span tag variations:
-----------------------------------------------------------------------------
.s1_italic{ //works!
font-family:"Verdana Bold Italic";
}
.s1_italic{ //works!
font-family:"Century Gothic";
font-weight:normal;
font-style:italic;
}
.s1_italic{ //doesn't work
font-family:"Century Gothic Bold Italic";
}
.s1_italic{ //doesn't work...
font-family:"Century Gothic";
font-style:italic;
font-weight:bold;
}
-----------------------------------------------------------------------------
What am I missing? I'm trying to get bold italic for Century Gothic to work... normal italic Century Gothic works and so does bold italic Verdana... just not bold italic Century Gothic... this is so frustrating... ![]()
Any insight or advice is much appreciated.
Thank you
sk
