Not finding installed font family on Windows
Rony G. Flatscher
Rony.Flatscher at wu.ac.at
Thu Apr 21 11:57:14 UTC 2022
Having installed the "IBM Plex" (otf) fonts (e.g. a file like "IBMPlexMono-Text.otf") to the global
Windows font directory at "C:\Windows\Fonts" (%windir%\Fonts) the font family "IBM Plex Mono" and
the like does not get listed with "javafx.scene.text.Font.getFamilies()".
Using javafx.scene.text.Font.getFontNames() the fonts are listed (e.g. as "IBMPlexMono-Text").
Is this to be expected, no font family, but font names carrying the name of the otf-font file only
rather than the logical name of the "open type font"?
---rony
P.S.: This may be related to <https://bugs.openjdk.java.net/browse/JDK-8281327> although it sounds
to be a different issue.
More information about the openjfx-dev
mailing list