Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8115452

Support complex text for WebView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web

      Description

      We have added support for complex scripts in prism, but not to all the API made complex text aware.

      1) Graphics#drawString(String, FontStrike, float, float) is NOT complex text aware
      2) FontStrike#getOutline(String, BaseTransform) is NOT complex text aware

      The newly added
      3) Graphics#drawString(GlyphList, FontStrike, float, float, Color, int, int);
      4) FontStrike#getOutline(GlyphList, BaseTransform)
       
      Are both complex text aware.

      Any text drawn using NGText is complex text aware.

      A new TextLayout class was added to generate a GlyphList from a given String and Font.

      We know that Webview uses (1) and (2), which means it can't render complex text correctly.

      Final note, we are finishing rich text and some internal APIs are changing:

      TextLayout API is changing (I would like to make it simpler for WebView and Canvas)
      PGText is changing (it won't have setText anymore, only setContent(GlyphList) )

        Attachments

        1. RT25608.java
          2 kB
        2. saudi.png
          saudi.png
          201 kB

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov (Inactive)
                Reporter:
                fheidric Felipe Heidrich
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: