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

Support complex text for WebView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • None
    • javafx
    • web

      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) )

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

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

              Created:
              Updated:
              Resolved:
              Imported: