答案 0 :(得分:1)
答案 1 :(得分:1)
我发现上述方法并不总是有效。也就是说,我在Windows 7机器上嵌入了CS5中的'Helvetica Neue LT Std 55 Roman'。在字体查看对话框中,显示以下内容:
Font Name: Helvetica Neue LT Std 55 Roman
Vendor ID: ADBE
Copyright © 1988, 1990, 1993, 2002 Adobe Systems Incorporated. All Rights Reserved.
http://www.adobe.com/type/legal.html
在css中使用该字体名称失败。要获取字体的Flash值,我使用了以下内容:
var fonts:Array = Font.enumerateFonts();
for (var i:int = 0; i < fonts.length; i++)
{
var font:Font = (fonts[i] as Font)
trace(font.fontName, ",", font.fontStyle, ",", font.fontType)
}
font.fontName是你的css中的font-family,font.fontStyle可以是font-weight或font-style。
对于好奇,我所显示的值是:“HelveticaNeueLT Std,regular,embedded”