When using an italic system font, such as BrushScriptStd.otf (pretty
standard on Windows PCs ), it renders a capital "B" correctly in the
textarea:

public var letB:String = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT
FACE="BrushScriptStd" SIZE="72" COLOR="#000000" LETTERSPACING="0"
KERNING="0">B</FONT></P></TEXTFORMAT>';

myTextArea.htmlText = letB;

Looks like this in the flash player in Firefox:



  [B.jpg] 
<http://forums.adobe.com/servlet/JiveServlet/showImage/16926/B.jpg>



When I try to create a bitmap image of the TextArea, the edge of the
italic "B" that "overhangs" the next character position gets clipped off
in the rendered bitmap:



  [Bclipped.jpg] 
<http://forums.adobe.com/servlet/JiveServlet/showImage/16927/Bclipped.jp\
g>



I used the BitmapData.draw method to generate the bitmap.  I have also
tried ImageSnapShot with the same result.



             myTextArea.setStyle("backgroundAlpha", 0.0);
             var myBitmap:BitmapData = new BitmapData(myTextArea.width*1,
myTextArea.height*1, true, 0x00000000);
             var m:Matrix = new Matrix();
             m.scale(1, 1);
             myBitmap.draw(myTextArea, m);
             BitmapImageOfB.source = new Bitmap(myBitmap);



BTW - I need to use system fonts (allow the user to be able to create
text with any fonts they have on their hard drive.)  However, I have
tried this with embedding the BrushScriptStd font just to see if that
was the problem, but embedding did not change anything.



Is this a bug?  Or am I doing something really wrong?

Reply via email to