<div dir="ltr"><span class="" id=":5tq.1" tabindex="-1">Alexey</span>, I guess that it might be a missing part (one of, at least), an exact inheritance of the platform <span class="" id=":5tq.2" tabindex="-1">freetype</span> configuration.<div><br></div><div>I attach a simple app for testing the <span class="" id=":5tq.3" tabindex="-1">renderer</span> with some standard <span class="" id=":5tq.4" tabindex="-1">ubuntu</span> fonts. I added its output to the <span class="" id=":5tq.5" tabindex="-1">stackexchange</span> question https://<span class="" id=":5tq.6" tabindex="-1">stackoverflow</span>.com/questions/41149451/a-method-of-getting-a-<span class="" id=":5tq.7" tabindex="-1">linux</span>-<span class="" id=":5tq.8" tabindex="-1">jdk</span>-tarball-with-<span class="" id=":5tq.9" tabindex="-1">freetype</span>-like-font-rendering</div><div><br></div><div>Why not ask the <span class="" id=":5tq.10" tabindex="-1">dev</span> who prepared the Android Studio <span class="" id=":5tq.11" tabindex="-1">jdk</span>? If there are already variants which do the rendering right, why not just merge them into the <span class="" id=":5tq.12" tabindex="-1">OpenJDK</span> trunk.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 16, 2016 at 10:31 AM, Alexey Ushakov <span dir="ltr"><<a href="mailto:alexey.ushakov@jetbrains.com" target="_blank">alexey.ushakov@jetbrains.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Artur,<span class=""><div><br></div><div><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">So if it looks bad with that, it will look bad on your desktop unless the font is interpreted differently.<br></div></blockquote><div><br></div><div>Not true. The particular font, like a lot of the other (if you wish, I may send you example images), is badly rendered only in Java. Other Freetype apps render these fonts very well, thanks to the exceptional quality of that library.</div><div><br></div><div>If I run Netbeans with its standard fonts and --jdk-home of the Android Studio jdk, the GUI quality is immediately improved, thanks to the fonts rendered as expected from a properly supported Freetype.</div></div></div></div></blockquote></div><div><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div></div></div></div></div></span><div>Actually we (at JetBrains) have made some changes to use fontconfig hints in freetype rendering.</div><div><br></div><div>Best Regards,</div><div>Alexey</div><div><div class="h5"><div><br></div><div><div><blockquote type="cite"><div>On 16 Dec 2016, at 03:32, Artur Rataj <<a href="mailto:arturrataj@gmail.com" target="_blank">arturrataj@gmail.com</a>> wrote:</div><br class="m_-8642871072730943919Apple-interchange-newline"><div><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 16, 2016 at 12:54 AM, Phil Race <span dir="ltr"><<a href="mailto:philip.race@oracle.com" target="_blank">philip.race@oracle.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF"><br>
As I started to say on that list, it seems to me that this may be a
font-specific problem.<br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">Fonts have hints. I've seen similar issues when the hints are poor.</div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"> </div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
Unfortunately there is no easy way to know if they are poor.<br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">Some clients/apps/rendering systems by policy ignore hints so they
may look OK,<br>
but then they may not look as good on a case where the hints were
good and important.<br>
If I knew exactly what font you were using I could look at it.<br></div></blockquote><div><br></div><div><div><div>The problem is more or less visible in a number of fonts, including the standard ones used by Java in dialogs, and several very high quality fonts supplied with Ubuntu. Of course, the actual differences vary with fonts.</div></div><div> <br></div></div><div>Also, the poor quality of font rendering of Java/Linux is known. This why there are the patches, the alternative "fixed" versions of OpenJDK etc.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><br></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
Oracle's builds use a one that ships with the JDK binaries (not
source)<br>
All openjdk builds use freetype. On Linux this means Ubuntu's
openjdk will<br>
use the exact same copy of freetype as used for rendering the rest
of your desktop!<br></div></blockquote><div><br></div><div>Thanks, so I was wrong. Then, it might be a misconfigured freetype, a buggy interface to freetype or whatever.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF">
So if it looks bad with that, it will look bad on your desktop
unless the font is interpreted differently.<br></div></blockquote><div><br></div><div>Not true. The particular font, like a lot of the other (if you wish, I may send you example images), is badly rendered only in Java. Other Freetype apps render these fonts very well, thanks to the exceptional quality of that library.</div><div><br></div><div>If I run Netbeans with its standard fonts and --jdk-home of the Android Studio jdk, the GUI quality is immediately improved, thanks to the fonts rendered as expected from a properly supported Freetype.</div><div><br></div></div></div></div>
</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>