[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-2d-dev
Subject: Re: [OpenJDK 2D-Dev] Possible solution for font-rendering issues in Windows
From: Judith Rohloff <ROH () ivu ! de>
Date: 2019-04-30 7:56:33
Message-ID: 57be7d47c60643e5a231c505ff7c71df () ivu ! de
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hi,
We tested this workaround for the bug \
https://bugs.openjdk.java.net/browse/JDK-8217731 on windows 7 and 10 with Java11 \
(Oracle JDK). It solves the ugly font problem.
Thanks a lot
Judith
Von: 2d-dev <2d-dev-bounces@openjdk.java.net> Im Auftrag von Peter Harvey
Gesendet: Sonntag, 28. April 2019 17:26
An: 2d-dev@openjdk.java.net
Betreff: [OpenJDK 2D-Dev] Possible solution for font-rendering issues in Windows
Apologies if this is not the correct channel for this email.
From what I can tell, Freetype 2.7 contained a change in hint processing that led to \
poorer quality font rendering on Windows. Any OpenJDK distribution using Freetype 2.7 \
or higher (ie. most distributions) will have poorer quality font rendering on \
Windows. I may have found a solution to this issue but I am unable to add comments to \
the relevant bugs:
https://bugs.openjdk.java.net/browse/JDK-8217731
https://bugs.openjdk.java.net/browse/JDK-8208377
https://bugs.openjdk.java.net/browse/JDK-8214538
As a temporary workaround, users of OpenJDK distributions can force pre-2.7 font \
rendering by simply setting an environment variable:
FREETYPE_PROPERTIES=truetype:interpreter-version=35
I've tested this workaround on OpenJDK distributions from Amazon, Oracle, and \
AdoptOpenJDK. Note that AdoptOpenJDK's distribution for Java 8 didn't require the \
workaround because it appears to be using Freetype 2.5.3. A quick Google for \
"truetype:interpreter-version=35" shows plenty of people in other open-source \
communities (eg. Wine, Fedora) which encourage this workaround for other software.
A more permanent solution would be to change the default build process for OpenJDK to \
set "truetype:interpreter-version=35" as the default when compiling Freetype.
Please let me know if I can assist in any way.
Regards,
Peter.
--
Actenum Corporation
Peter Harvey | Cell: 780.729.8192 | harvey@actenum.com<mailto:harvey@actenum.com> \
| www.actenum.com<http://www.actenum.com>
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.E-MailFormatvorlage18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" \
style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">We tested \
this workaround for the bug <a \
href="https://bugs.openjdk.java.net/browse/JDK-8217731">https://bugs.openjdk.java.net/browse/JDK-8217731</a> \
on windows 7 and 10 with Java11 (</span><span lang="EN-US">Oracle JDK</span><span \
lang="EN-US" style="mso-fareast-language:EN-US">). It solves the ugly font \
problem.<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">Thanks a \
lot<o:p></o:p></span></p> <p class="MsoNormal"><span lang="EN-US" \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span lang="EN-US" \
style="mso-fareast-language:EN-US">Judith<o:p></o:p></span></p> <p \
class="MsoNormal"><span \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><span \
style="mso-fareast-language:EN-US"><o:p> </o:p></span></p> <p \
class="MsoNormal"><b>Von:</b> 2d-dev <2d-dev-bounces@openjdk.java.net> <b>Im \
Auftrag von </b>Peter Harvey<br>
<b>Gesendet:</b> Sonntag, 28. April 2019 17:26<br>
<b>An:</b> 2d-dev@openjdk.java.net<br>
<b>Betreff:</b> [OpenJDK 2D-Dev] Possible solution for font-rendering issues in \
Windows<o:p></o:p></p> <p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Apologies if this is not the correct channel for this \
email.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">From what I can tell, Freetype 2.7 contained a change in hint \
processing that led to poorer quality font rendering on Windows. Any OpenJDK \
distribution using Freetype 2.7 or higher (ie. most distributions) will have poorer \
quality font rendering on Windows. I may have found a solution to this issue but I \
am unable to add comments to the relevant bugs:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> <a \
href="https://bugs.openjdk.java.net/browse/JDK-8217731">https://bugs.openjdk.java.net/browse/JDK-8217731</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <a \
href="https://bugs.openjdk.java.net/browse/JDK-8208377">https://bugs.openjdk.java.net/browse/JDK-8208377</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <a \
href="https://bugs.openjdk.java.net/browse/JDK-8214538">https://bugs.openjdk.java.net/browse/JDK-8214538</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal">As a temporary workaround, users of OpenJDK distributions can \
force pre-2.7 font rendering by simply setting an environment \
variable:<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"> \
FREETYPE_PROPERTIES=truetype:interpreter-version=35<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I've tested this workaround on OpenJDK distributions from \
Amazon, Oracle, and AdoptOpenJDK. Note that AdoptOpenJDK's distribution for Java 8 \
didn't require the workaround because it appears to be using Freetype 2.5.3. A quick \
Google for "truetype:interpreter-version=35" shows plenty of people in \
other open-source communities (eg. Wine, Fedora) which encourage this workaround for \
other software.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">A more permanent solution would be to change the default build \
process for OpenJDK to set "truetype:interpreter-version=35" as the default \
when compiling Freetype.<o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please let me know if I can assist in any \
way. <o:p></o:p></p> </div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Regards,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Peter.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<p class="MsoNormal"><b>Actenum Corporation</b><br>
Peter Harvey | Cell: 780.729.8192 | <a \
href="mailto:harvey@actenum.com" target="_blank">harvey@actenum.com</a> | \
<a href="http://www.actenum.com" \
target="_blank">www.actenum.com</a><o:p></o:p></p> </div>
</div>
</div>
</div>
</div>
</body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic