JDK-8115452 : Support complex text for WebView
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2012-10-10
  • Updated: 2015-06-17
  • Resolved: 2013-03-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Fixed
Related Reports
Relates :  
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) )


Comments
Verified on 8.0b104
28-08-2013

Complex text is implemented as part of RT-24772. I'm attaching a screenshot of http://saudi.gov.sa rendered in Safari (left) and WebView (right) -- look very close.
19-03-2013

related to RT-24772
20-11-2012