Windows 7 WebView Text Rendering

Murali Billa murali.billa at oracle.com
Mon Jan 18 12:00:38 UTC 2016


Hi Michael,

Can you mention what is the resolution/scale under which you  are loading the content in webview?

Thanks,
Murali

-----Original Message-----
From: Michael Ennen [mailto:mike.ennen at gmail.com] 
Sent: Friday, January 15, 2016 10:52 AM
To: openjfx-dev at openjdk.java.net
Subject: Windows 7 WebView Text Rendering

Hello,

I am using Java 8u66 on Windows 7 and the text rendering in a WebView is super blurry. For comparison purposes, I created a simple test that shows a WebView displaying a paragraph and next to it a standard Label showing the same paragraph.

http://imgur.com/36RYvf8

(Sorry I don't have a better place to upload the screenshot).

The page I am displaying is the following:

<html>
<body>
<p>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed sed blandit magna, ut mattis ligula. Donec vestibulum
    ut neque id condimentum. Cras blandit erat ac tincidunt bibendum. Nulla dapibus arcu risus, at tincidunt leo
    facilisis sit amet. Donec imperdiet lectus diam, nec egestas sapien luctus nec. Praesent auctor ligula sed sem
    dictum venenatis. Donec non dapibus turpis. Aliquam dictum euismod sapien id bibendum. Quisque at accumsan eros.
    Quisque eleifend maximus justo at tempor. Curabitur ut mi ut justo auctor malesuada non at mi. Integer augue neque,
    ultrices sit amet augue a, interdum ultricies nibh. Sed imperdiet diam et eros maximus ultrices. Pellentesque
    habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
</p>
</body>
</html>

The Java code I am using to create the WebView is:

WebView webView = new WebView();
webView.setPrefSize(410, 620);
webView.getEngine().load(getClass().getResource("/web/test.html").toExternalForm());

Essentially, a incredibly bare-bones example.

This text rendering happens on every page I have tried to load (e.g. actual websites).

System info:

OS Name:                   Microsoft Windows 7 Ultimate
OS Version:                6.1.7601 Service Pack 1 Build 7601

java version "1.8.0_66"
Java(TM) SE Runtime Environment (build 1.8.0_66-b17) Java HotSpot(TM) 64-Bit Server VM (build 25.66-b17, mixed mode)

Although this is not a functionality breaking issue (e.g. not a showstopper), it really is a serious issue in my eyes because of just how qualities are of the rendered texts.

Thanks very much,
--
Michael Ennen


More information about the openjfx-dev mailing list