RFR: 8185261: Font fallback sometimes doesn't work in Swing text components [v2]

Sergey Bylokhov serb at openjdk.java.net
Wed Feb 2 21:32:28 UTC 2022


On Wed, 2 Feb 2022 18:32:10 GMT, Phil Race <prr at openjdk.org> wrote:

> Serialization of Font objects is just serializing the fields liek name and style and size but there's no guarantee that it will behave the same .. I mean if I serialize Segoe UI on WIndows and try to deserialize it on Linux nothing in the world can fix the issue that Linux doesn't have that font.

Since the Font object will lose some fields during serialization its behavior will be changed even on the same platform.

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

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



More information about the client-libs-dev mailing list