[OpenJDK 2D-Dev] RFR: 8265761: Font with missed font family name is not properly printed on Windows
Sergey Bylokhov
serb at openjdk.java.net
Sun Apr 25 20:56:56 UTC 2021
On Fri, 23 Apr 2021 08:08:29 GMT, Alexander Scherbatiy <alexsch at 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
More information about the 2d-dev
mailing list