On Fri, 23 Apr 2021 08:08:29 GMT, Alexander Scherbatiy <alex...@openjdk.org> 
wrote:

>> src/java.desktop/windows/classes/sun/awt/windows/WPrinterJob.java line 1160:
>> 
>>> 1158:                               int rotation, float awScale) {
>>> 1159: 
>>> 1160:         if (family.isEmpty()) {
>> 
>> Not sure that the non-empty family, but spaces only will work.
>
> Would it be better to use isBlank() instead of isEmpty() to check a font 
> family name is blank?
> 
>         if (family.isBlank()) {
>             return false;
>         }

I think so.

-------------

PR: https://git.openjdk.java.net/jdk/pull/3631

Reply via email to