-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
8u172
-
x86_64
-
os_x
FULL PRODUCT VERSION :
java version "1.8.0_172-ea"
Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
macOS 10.12.6
A DESCRIPTION OF THE PROBLEM :
When loading a simple web page like this into a WebView, the text is displayed in italics instead of normal:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Test</p>
</body>
</html>
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just create a WebView and load the HTML page mentioned above into it on MacOS.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The text should be displayed normal, without any formatting, like in Safari or Google Chrome.
ACTUAL -
The text is displayed in Italics.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
webView.getEngine().load(getClass().getResource("test.html").toString());
Where test.html is this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Test</p>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
A workaround is to load a different font for "Lucida Grande" via CSS:
@font-face {font-family: "Lucida Grande";src: url(<URL to Roboto.ttf>)}
java version "1.8.0_172-ea"
Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
macOS 10.12.6
A DESCRIPTION OF THE PROBLEM :
When loading a simple web page like this into a WebView, the text is displayed in italics instead of normal:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Test</p>
</body>
</html>
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Just create a WebView and load the HTML page mentioned above into it on MacOS.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The text should be displayed normal, without any formatting, like in Safari or Google Chrome.
ACTUAL -
The text is displayed in Italics.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
webView.getEngine().load(getClass().getResource("test.html").toString());
Where test.html is this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Test</p>
</body>
</html>
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
A workaround is to load a different font for "Lucida Grande" via CSS:
@font-face {font-family: "Lucida Grande";src: url(<URL to Roboto.ttf>)}