RE: Windows 7 WebView Text Rendering

2016-01-18 Thread Murali Billa
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.en...@gmail.com] 
Sent: Friday, January 15, 2016 10:52 AM
To: openjfx-dev@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:




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.




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


Re: Windows 7 WebView Text Rendering

2016-01-18 Thread Michael Ennen
Murali,

Resolution: 3440x1440
DPI (as reported by JavaFX): 120
Scale: (If by scale you mean the text size in Control Panel\All Control
Panel Items\Display) Medium (125%)

If that's not what you meant by scale please inform and I will get you the
correct info.

Thanks


On Mon, Jan 18, 2016 at 5:00 AM, Murali Billa 
wrote:

> 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.en...@gmail.com]
> Sent: Friday, January 15, 2016 10:52 AM
> To: openjfx-dev@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:
>
> 
> 
> 
> 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.
> 
> 
> 
>
> 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
>



-- 
Michael Ennen