1

I embed MovieClip that contains a lot of textfields. When I add those textfields to scene with addChild all works fine.

[Embed (source="/assets/movieclip.swf"]
private var libraryClass:Class;
...
var library:MovieClip = new libraryClass(); 
addChild(library.textfield);

But I need to draw textfields to bitmapData.

var _bitmapData:BitmapData = new BitmapData(500, 500, true, 0x000000);
var _bitmap:Bitmap = new Bitmap(_bitmapData);
addChild(_bitmap);
...
var field:TextFiled = library.textfield;
_bitmapData.draw(field);

The problem is after I draw with bitmapData.draw method, I can't see any textfields. But if disable embedFonts it draw correctly:

var _field:TextFiled = library.textfield;
_field.embedFonts = false;
_bitmapData.draw(_field);

I need to draw with embed font...

4

1 回答 1

1

将 embedFonts 设置为 true 会导致 FP 对此文本字段使用嵌入字体字体。可能此字体丢失或未正确嵌入。

您还需要嵌入字体。

于 2013-09-17T15:25:11.337 回答