RFR: 8281327: JavaFX does not support fonts installed per-user on Windows 10/11

Phil Race prr at openjdk.org
Tue Feb 14 20:45:49 UTC 2023


On Tue, 31 Jan 2023 10:30:22 GMT, Jose Pereda <jpereda at openjdk.org> wrote:

> This PR simply applies the patch from [JDK-8218914](https://bugs.openjdk.org/browse/JDK-8218914) that solved the same issue for the JDK.
> 
> I've tested it on Windows 11 (Version 22H2 Build 22621.1105). 
> 
> I have the Roboto font installed under C:\Users%user\AppData\Local\Microsoft\Windows\Fonts
> and with this PR, -Dprism.debugfonts shows:
> 
> 
> ...
> font=segoe ui historic file=seguihis.ttf
> font=roboto file=C:\Users%user\AppData\Local\Microsoft\Windows\Fonts\Roboto-Regular.ttf
> font=yu mincho file=yumin.ttf
> ...
> 
> 
> Also, I can see that the font is picked in a simple JavaFX application.
> Without this PR, the font is not used, and defaults to a system one. 
> 
> I don't think I can add this as a system/manual test to the PR, though.

Code looks good and I applied the patch and verified it works as advertised.

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

Marked as reviewed by prr (Reviewer).

PR: https://git.openjdk.org/jfx/pull/1017


More information about the openjfx-dev mailing list