[OpenJDK 2D-Dev] CFV: New JDK Committer: Dmitry Batrak

2020-02-17 Thread Anton Tarasov
I hereby nominate Dmitry Batrak to JDK Committer. Dmitry Batrak has contributed 8 significant fixes to Java 2D subsystem, related to font rendering [3]. Votes are due by March 2, 2020. Only current JDK Committers [1] are eligible to vote on this nomination. Votes must be cast in the open by repl

[OpenJDK 2D-Dev] RFR 8239149: Cleanups in SunFontManager.java and TrueTypeFont.java

2020-02-17 Thread Langer, Christoph
Hi, I did some cleanups in src/java.desktop/share/classes/sun/font/SunFontManager.java and src/java.desktop/share/classes/sun/font/TrueTypeFont.java which I’d like to contribute. Most is about indentation, generics initialization and better usage of AccessController::doPrivileged and friends.

Re: [OpenJDK 2D-Dev] CFV: New JDK Committer: Dmitry Batrak

2020-02-17 Thread Alexey Ivanov
Vote: yes On 17/02/2020 08:49, Anton Tarasov wrote: I hereby nominate Dmitry Batrak to JDK Committer. Dmitry Batrak has contributed 8 significant fixes to Java 2D subsystem, related to font rendering [3]. -- Regards, Alexey

Re: [OpenJDK 2D-Dev] RFR: 8221741 ClassCastException happen when fontconfig.properties was used

2020-02-17 Thread Langer, Christoph
Hi Mario, thanks for looking into the patch (which has already reached jdk/jdk mainline, btw). > > I propose to fix this by adding a "NULL FONT HANDLE" to use in > initialisedFonts for fonts that can’t be loaded. This will remove the > recursion > during loading of fonts. And afterwards a defau

Re: [OpenJDK 2D-Dev] RFR: 8221741 ClassCastException happen when fontconfig.properties was used

2020-02-17 Thread Mario Torre
On Mon, Feb 17, 2020 at 11:44 AM Langer, Christoph wrote: > > Hi Mario, > > thanks for looking into the patch (which has already reached jdk/jdk > mainline, btw). > > > > I propose to fix this by adding a "NULL FONT HANDLE" to use in > > initialisedFonts for fonts that can’t be loaded. This will

Re: [OpenJDK 2D-Dev] [14] RFR JDK-8235147: Release HDC from passiveDCList sooner

2020-02-17 Thread Alexey Ivanov
Thank you, Sergey, for your review! Any other volunteers? On 06/02/2020 23:10, Sergey Bylokhov wrote: Looks fine. On 2/6/20 1:39 pm, Alexey Ivanov wrote: Hello once again, After trying a few things suggested by Sergey, I found serious issues in the new approaches although the code looked a

Re: [OpenJDK 2D-Dev] RFR: 8221741 ClassCastException happen when fontconfig.properties was used

2020-02-17 Thread Langer, Christoph
Hi Mario, > > I think that's better and more explicit compared to having a strange > ClassCastException. > > Oh, yes, I agree it's a better message. > > Would they get this error during the font initialisation or at runtime > during use? I think this is one could be an interesting change from >

Re: [OpenJDK 2D-Dev] [15] Review Request: 8237746 Fixing compiler warnings in src/demo/share/jfc

2020-02-17 Thread Alexey Ivanov
Thank you, Marc, for your contribution. And thank you to Sergey for creating the review. *Font2DTest.java* 674 if ( selectedText == fp.USER_TEXT ) 675   userTextDialog.setVisible(true); 676 else 677   userTextDialog.setVisible(false); I'd put the braces around and

Re: [OpenJDK 2D-Dev] [15] Review Request: 8237746 Fixing compiler warnings in src/demo/share/jfc

2020-02-17 Thread Marc Hoffmann
Thanks Alexey for the detailed review! I attached a updated version. The examples have many cleanup opportunities. I wanted to focus on compiler warnings for now and keep the changeset minimal. > *Font2DTest.java* > 674 if ( selectedText == fp.USER_TEXT ) > 675 userTextDialog.