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

Jose Pereda jpereda at openjdk.org
Tue Jan 31 10:37:02 UTC 2023


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.

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

Commit messages:
 - Apply patch from JDK-8218914

Changes: https://git.openjdk.org/jfx/pull/1017/files
 Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1017&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8281327
  Stats: 113 lines in 1 file changed: 63 ins; 43 del; 7 mod
  Patch: https://git.openjdk.org/jfx/pull/1017.diff
  Fetch: git fetch https://git.openjdk.org/jfx pull/1017/head:pull/1017

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


More information about the openjfx-dev mailing list