Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33561

FTETextField underline overlaps with East Asian text

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Apache Flex 4.9.0
    • None
    • Spark: FTETextField

    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>

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            jcfranco JC Franco

            Dates

              Created:
              Updated:

              Slack

                Issue deployment