Integrated: 8357672: Extreme font sizes can cause font substitution

Phil Race prr at openjdk.org
Mon Jun 2 15:26:56 UTC 2025


On Wed, 28 May 2025 20:19:42 GMT, Phil Race <prr at openjdk.org> wrote:

> Instrumenting the existing ExtremeFontSizeTest.java, it was noted that the freetype code, when encountering a null return from getting a scaler context, would over-interpret this as a bad font.
> The test was intended to check this wasn't happening by verifying metrics before and after using extreme sizes.
> But the scenaro was not being detected by the test because a replacement font was substituted and it did not have zero metrics.
> So the updated test checks that the metrics before and after are the same.
> This new version of the test failed on Linux before the JDK source updates and passes afterwards.

This pull request has now been integrated.

Changeset: a4eb1519
Author:    Phil Race <prr at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a4eb15195ceeadf311fe81e622a54f4733b90df2
Stats:     104 lines in 3 files changed: 92 ins; 2 del; 10 mod

8357672: Extreme font sizes can cause font substitution

Reviewed-by: dmarkov, jdv

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

PR: https://git.openjdk.org/jdk/pull/25511


More information about the client-libs-dev mailing list