JDK-8101391 : An extension in Graphics interface for glyph-base text drawing.
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: fx2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2011-04-19
  • Updated: 2015-06-16
  • Resolved: 2011-06-07
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.
Other
fx2.0Resolved
Related Reports
Duplicate :  
Description
The problem is that Webkit (and our FX port - webnode)  has BIDI string machinery and CSS support for letters/words spacing in shared code. The final Webkit callback for rendering is coming in format of glyph array and array of advances:
WCGraphicsPrismContext.drawString(WCFont f, int[] glyphs,
                                    float[] advanceDXY, // ar(advanceDXY) = 2 * ar(glyphs): dx and dy for each glyph.
                                    float x, float y); 
To reach up the correct implementation we need an extension in Graphics interface for glyph-base text drawing with signature:
Graphics.drawGlyphs(    FontStrike fs,
                                    int[] glyphCodes,  // glyph codes (can be ligature)
                                    float[] advancesX, // dx offsets for next glyph 
                                    float[] advancesY,// dy offsets for next glyph in baseline
                                    float x, float y); 
ar(glyphCodes) = ar(advancesX) = ar(advancesY)