Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Apache Flex 4.9.0
-
None
Description
The following sample application shows the underline overlapping with East Asian text (Japanese | Chinese (simplified) | Korean).
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init();">
<s:controlBarContent>
<s:Label id="sdkVer" initialize="sdkVer.text = mx_internal::VERSION;"/>
</s:controlBarContent>
<fx:Script>
<![CDATA[
import mx.core.FTETextField;
private function init():void
{ var textFormat:TextFormat = new TextFormat(); textFormat.bold = true; textFormat.underline = true; textFormat.size = 40; var textField:TextField = new TextField(); textField.defaultTextFormat = textFormat; textField.text = "こんにちは | 你好 | 안녕하세요" textField.autoSize = TextFieldAutoSize.LEFT; textField.y = 10; canvas.rawChildren.addChild(textField); var fteTextField:FTETextField = new FTETextField(); fteTextField.defaultTextFormat = textFormat; fteTextField.text = "こんにちは | 你好 | 안녕하세요" fteTextField.autoSize = TextFieldAutoSize.LEFT; fteTextField.y = 50; canvas.rawChildren.addChild(fteTextField); } ]]>
</fx:Script>
<s:VGroup x="20" y="20">
<mx:Canvas id="canvas"/>
</s:VGroup>
</s:Application>