JDK-8126172 : Asian fonts: vertical text is rendered bolder then it should be
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-05-21
  • Updated: 2015-06-17
  • Resolved: 2013-07-16
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
Blocks :  
Relates :  
Description
Vertical Japanese text is rendered bolder then it should be in WebView compared to Chrome.
Please check attached image for an example.
The following DRT tests might be used to reproduce the issue:
fast/writing-mode/vertical-font-fallback.html
fast/writing-mode/vertical-baseline-alignment.html

Comments
This has been working correctly for me. Probably it was fixed by using CoreText. Please reopen if you still see the problem. Thank you.
16-07-2013

Is there other fonts that show the same problem ?
04-02-2013

Note that the given font ("HiraMinPro-W3") is not supported on Mac, see RT-12684 and RT-15755. I suspect that Chrome is actually using "HiraMinPro-W3" while JFX is using a fallback font that seems "bolder" than "HiraMinPro-W3".
04-02-2013

This is not a WebView issue. JavaFX renders the HiraMinPro-W3 font in bold style.
28-06-2012

JavaFX source used to generate font.win.png: public class Test extends Application { public static void main(String[] args) { launch(args); } public void start(Stage stage) { Font f = Font.font("HiraMinPro-W3", 24); Text h = new Text("\u5c5c"); Text v = new Text("\u5c5c"); v.setRotate(90); v.setFont(f); h.setFont(f); HBox box = new HBox(); box.getChildren().addAll(h, v); stage.setScene(new Scene(box)); stage.setTitle("Test fonts without WebView"); stage.show(); } }
28-06-2012

HTML file used to generate font.win.png: <!DOCTYPE HTML> <!--html style="-webkit-writing-mode: vertical-rl"--> <head> <title>Vertical Font Baseline Test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <style type="text/css"> body { font-size:24px } .japanese { font-family: "HiraMinPro-W3"; } .english { font-size:48px; text-transform:uppercase } </style> </head> <body> <p><span class="japanese">������������ </span><span class="english">Paragraph 1 <br> More text. <span style="font-size:12px">Should not be centered.</span> </span></p><p><span>������������ <span class="english">Paragraph 2 <img style="background-color:green; width:70px; height:30px;"> </span></span></p> </body> </html>
28-06-2012

This is not an issue for vertical text. It is also reproduced for horizontal text.
28-06-2012