<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">One thing to add is that Swing on Windows will use LCD text in all cases I can think of and that is rendered by Windows/GDI not free type.<div>Line and glyph spacing may still be affected (come from freetype) but not the glyph image itself.</div><div>So it would have to be some custom rendering in another mode using 2D directly to get freetype glyph images in b&w or grayscale.<br><br><div id="AppleMailSignature" dir="ltr">-Phil.</div><div dir="ltr"><br>On Apr 28, 2019, at 10:14 AM, Philip Race <<a href="mailto:philip.race@oracle.com">philip.race@oracle.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr">
  
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  
  
    <br>
    <br>
    On 4/28/19, 8:25 AM, Peter Harvey wrote:
    <blockquote cite="mid:CACaNnWrMaG6hEHoLA7XUrdnx6gPokYqdad35-e44Z2JHL-VxRA@mail.gmail.com" type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div>
              <div>Apologies if this is not the correct channel for this
                email.</div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    It is, but if you want to send any more emails to this list, you
    will need to subscribe.<br>
    <blockquote cite="mid:CACaNnWrMaG6hEHoLA7XUrdnx6gPokYqdad35-e44Z2JHL-VxRA@mail.gmail.com" type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div>
              <div><br>
              </div>
              <div>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:</div>
              <div><br>
              </div>
              <div>   <a moz-do-not-send="true" href="https://bugs.openjdk.java.net/browse/JDK-8217731">https://bugs.openjdk.java.net/browse/JDK-8217731</a><br>
              </div>
              <div>   <a moz-do-not-send="true" href="https://bugs.openjdk.java.net/browse/JDK-8208377">https://bugs.openjdk.java.net/browse/JDK-8208377</a></div>
              <div>   <a moz-do-not-send="true" href="https://bugs.openjdk.java.net/browse/JDK-8214538">https://bugs.openjdk.java.net/browse/JDK-8214538</a><br>
              </div>
              <div> <br>
              </div>
            </div>
            <div>As a temporary workaround, users of OpenJDK
              distributions can force pre-2.7 font rendering by simply
              setting an environment variable:<br>
            </div>
            <div><br>
            </div>
            <div>   FREETYPE_PROPERTIES=truetype:interpreter-version=35</div>
            <div><br>
            </div>
            <div>I've tested this workaround on OpenJDK distributions
              from Amazon, Oracle, and AdoptOpenJDK.</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    Do you mean you specifically tested out exactly the issues &
    scenarios<br>
    listed in the above bug reports and found them all 100% reverted
    & cured ?<br>
    If not, please detail what exactly you see in each case when
    applying the property vs previous JDKs.<br>
    What version of Windows did you test, and did you test anything
    other than Windows ?<br>
    <br>
    <br>
    <br>
    <blockquote cite="mid:CACaNnWrMaG6hEHoLA7XUrdnx6gPokYqdad35-e44Z2JHL-VxRA@mail.gmail.com" type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div> 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.</div>
            <div><br>
            </div>
            <div>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.</div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    I have read freetype notes on this and it isn't clear whether we
    want to go against what it does by default.<br>
    And in any case, Oracle JDK switched from T2K to freetype in 11 so
    there can be differences due to that too.<br>
    <br>
    It may be that Windows is the only platform on which this reversion
    is a good idea.<br>
    And in any case, on Linux + Solaris (not sure about other Unix-like
    distros) OpenJDK<br>
    currently uses the system freetype so a JDK build change for
    freetype wouldn't help.<br>
    <br>
    <blockquote cite="mid:CACaNnWrMaG6hEHoLA7XUrdnx6gPokYqdad35-e44Z2JHL-VxRA@mail.gmail.com" type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div><br>
            </div>
            <div>Please let me know if I can assist in any way. </div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    The above requested information ..<br>
    <br>
    -phil.<br>
    <br>
    <blockquote cite="mid:CACaNnWrMaG6hEHoLA7XUrdnx6gPokYqdad35-e44Z2JHL-VxRA@mail.gmail.com" type="cite">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div>Regards,</div>
            <div>Peter.</div>
            <div><br>
            </div>
            -- <br>
            <div dir="ltr" class="gmail_signature"><b>Actenum
                Corporation</b><br>
              Peter Harvey  |  Cell: 780.729.8192  |  <a moz-do-not-send="true" href="mailto:harvey@actenum.com" target="_blank">harvey@actenum.com</a>  |  <a moz-do-not-send="true" href="http://www.actenum.com" target="_blank">www.actenum.com</a></div>
          </div>
        </div>
      </div>
    </blockquote>
  

</div></blockquote></div></body></html>