Tracing out embedded fonts

One thing I’ve noticed (especially in cs4) is a hard time identifying the names of the fonts you’re embedding. For instance: the font I was using “Helvetica Neue BlackItalic” (as in the IDE) when traced turned out to be “12 pt. Helvetica* 96 Black Italic 16472″. Seriously, flash? Wow. Totally sucks. I would have never figured it out unless I did this (directly from the flash docs):

var fontArray:Array = Font.enumerateFonts(false);
for(var i:int = 0; i < fontArray.length; i++) {
    var thisFont:Font = fontArray[i];
    trace(“name: “ + thisFont.fontName);
    trace(“typeface: “ + thisFont.fontStyle);
}

 
Man. This will save you 1000 headaches.

del.icio.us Slashdot Digg Facebook Technorati Google Yahoo


About this entry