Zulu JDK

For developer discussion on package requests
Message
Author
hunghung

Re: Zulu JDK

#11 Post by hunghung »

timkb4cq wrote: Sat Nov 02, 2019 6:32 pm Java FXPorts reported that installing libfreetype6-dev fixes the font smoothing. Have you tried that?
Hi. I've tried but it didn't work :rolleyes:

hunghung

Re: Zulu JDK

#12 Post by hunghung »

baldyeti wrote: Sat Nov 02, 2019 9:39 am Thanks hunghung, hopefully this is a temporary glitch, not some restriction Oracle introduced to features OpenbJDK can bundle.

PS: I installed build 232 from AdoptOpenJDK and fonts look alright to me (on MX18/stretch)

PS2: MX-forum again awfully slow I am sorry to report
Unfortunately I don't think so. I advised you to download Pixelitor and go to Help/About/System Info you will noticed that with Java 8 build 222 and previous builds, Java vendor is not locked, with Zulu 8 it's Azul Systems or something like that, but with Java 8 build 232 it's all changed to Oracle. As soon as you upgrade to Java 8 build 232 on any platforms the font smoothing is broken :rolleyes:

User avatar
timkb4cq
Developer
Posts: 3624
Joined: Wed Jul 12, 2006 4:05 pm

Re: Zulu JDK

#13 Post by timkb4cq »

Found a workaround! I think you'll want to export this FREETYPE_PROPERTIES=truetype:interpreter-version=35 setting in /etc/environment once you see the results here

FREETYPE_PROPERTIES=truetype:interpreter-version=35 java -jar <path-to>/Pixelitor-4.2.2.jar
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

hunghung

Re: Zulu JDK

#14 Post by hunghung »

timkb4cq wrote: Mon Nov 04, 2019 11:55 am Found a workaround! I think you'll want to export this FREETYPE_PROPERTIES=truetype:interpreter-version=35 setting in /etc/environment once you see the results here

FREETYPE_PROPERTIES=truetype:interpreter-version=35 java -jar <path-to>/Pixelitor-4.2.2.jar
Could you show me a screenshot? I've tried but it didn't work :frown:

User avatar
baldyeti
Posts: 730
Joined: Sat Dec 05, 2009 3:37 pm

Re: Zulu JDK

#15 Post by baldyeti »

@hunghung: I am using the build 1.8.0_232-b09 from AdoptOpenJDK and the fonts look normal to me, including with your test app (see attachment)

Note i am on MX18/stretch, are you using MX19/buster ? It might have different FreeType libraries that make the work-around suggested by tim necessary.
You do not have the required permissions to view the files attached to this post.
Last edited by baldyeti on Mon Nov 04, 2019 2:16 pm, edited 2 times in total.

hunghung

Re: Zulu JDK

#16 Post by hunghung »

baldyeti wrote: Mon Nov 04, 2019 12:55 pm @hunghung: I am using the build 1.8.0_232-b09 from AdoptOpenJDK and the fonts look normal to me, including with your test app (see attachment)

Image
Note i am on MX18/stretch, are you using MX19/buster ? It might have different FreeType libraries that make the work-around suggested by tim is necessary.
I'm using MX-18.3 like you. AdoptOpenJDK was said to be not affected since it links with an older FreeType version.

p/s: Oh, almost forgot. When I report to timkb4cq I use MX's stock Java. I've so many Java installed on my system now so it's really confusing.

User avatar
timkb4cq
Developer
Posts: 3624
Joined: Wed Jul 12, 2006 4:05 pm

Re: Zulu JDK

#17 Post by timkb4cq »

The workaround works on MX-19 using either the installed openjdk-11 or openjdk-8 from the standard repositories. No need to go to outside Java builds

Without workaround:
Screenshot-26.png
With Workaround:
Screenshot-25.png
You do not have the required permissions to view the files attached to this post.
Last edited by timkb4cq on Mon Nov 04, 2019 1:49 pm, edited 1 time in total.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
baldyeti
Posts: 730
Joined: Sat Dec 05, 2009 3:37 pm

Re: Zulu JDK

#18 Post by baldyeti »

Must be my aging eyes - i can barely see any difference ?!? Would you say my screenshot has a font smoothing issue, too ? I have seen much worse with java and swing !

Anyway i only use an external JDK because i multi-boot and don't want every distro installed to regularly update big packages like java/firefox/libreoffice.

For regular users i do not think it is reasonable to ask MX to package every JDK under the sun as requested by hunghung in another thread. That can only lead to confusion. OpenJDK is what debian and most distros endorse, and a perfectly sane default IMO. If a given release behaves better with a temporary work-around, this here forum is the place to share the hint.

User avatar
timkb4cq
Developer
Posts: 3624
Joined: Wed Jul 12, 2006 4:05 pm

Re: Zulu JDK

#19 Post by timkb4cq »

Your snapshot looks fine.

Open the the first snapshot I posted in a new tab & zoom in with <ctrl>+ or <ctrl>mousewheel
You will see letters with cyan & purple color fringing not seen while using the workaround, or with the version of Java you have installed.
Screenshot-27.png
You do not have the required permissions to view the files attached to this post.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

hunghung

Re: Zulu JDK

#20 Post by hunghung »

Sorry everyone, I forgot to turn off my image blocker extension so I didn't see your screenshot.

Here are my screenshots using Zulu JDK.

You could clearly see the different with yours.

Notice: Screenshot3: Do you even recognize it's a Java Swing App? ;)

That's the reason why I recommend this Zulu JDK over MX's stock JDK. Sadly, the latest Zulu JDK version also broke font smoothing.

Grab the .deb here and install it, you will know how awesome it is: https://cdn.azul.com/zulu/bin/zulu8.40. ... _amd64.deb

p/s: the openjdk8 build 222 on FreeBSD also has the same quality of font smoothing.
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “Package Requests / Status”