开发者

Flex embedded fonts cause tab characters to be stripped

I'm trying to paste text into a flex textarea. The text I'm pasting has newlines and tabs, but when I paste the text into the textarea, the tabs are stripped out.

If I comment o开发者_如何学Cut the CSS line font-family: EmbArial; the tabs will be preserved. I tried using different font files, but it didn't help.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Style>
        Application
        {
            /*font-family: EmbArial; /*remove comment to show problem*/
        }
        @font-face
        {
            font-family: "EmbArial";
            src: url("fonts/BKANT.TTF");
        }
    </mx:Style>
    <mx:TextArea id="textStuff" width="300" height="100" text="Paste stuff with tabs!"/>
</mx:Application>

Full source here: johnuckele.com/TabProblem.zip

Any ideas?


Sounds like the text you try to paste uses an ecoding for the tab which your fonts don't understand.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜