0

I'm attempting to embed a font using FDT. I notice that FDT doesn't recognise the embedAsCFF="false" parameter.

(see: http://bugs.powerflasher.com/jira/browse/FDT-1853?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel )

I'm doing something like this:-

[Embed(source="fonts/RobotoCondensed-Light.ttf", fontFamily="RobotoCondensedLight", embedAsCFF="false")]
tf.embedFonts = true;
tf.htmlText = '<font face="RobotoCondensedLight">Hello</font>';

Without embedAsCFF, no text appears. But RobotoCondensedLight is listed in Font.enumerateFonts()

With embedAsCFF - I get a compile errors: exception during transcoding, unable to build font 'RobotoCondensedLight', and Unable to transcode fonts/RobotoCondensed-Light.ttf.

I assume the problem is the embedAsCFF parameter - or is it something else?

How are people embedding fonts with FDT?

4

2 回答 2

0

事实证明,解决方案是使用 ASC 2.0 编译器。虽然它不适用于旧编译器(显然,它也不适用于命令行) - 但新编译器解决了这个问题。

于 2013-11-13T06:38:14.293 回答
0

«我注意到 FDT 无法识别 embedAsCFF="false" 参数。»

嗯,我认为这就是问题所在。从 Flex 4 开始,您确实需要将 embedAsCFF 设置为 false 才能使嵌入字体工作。

如果 FDT 不允许您使用它,您可能需要尝试使用不同的 IDE。

于 2013-11-11T07:19:11.477 回答