Can't I use the Meiryo UI in JavaFX (Java 9)?

Asked 2 years ago, Updated 2 years ago, 139 views

I'm trying to develop a JavaFX application in Java 9.
Java 8 is no longer able to make the font "Meiryo UI" that was made, and Java 9 is no longer able to make it.
(Scene Builder also uses Scene Builder for Java 9)

I thought it might be a Scene Builder bug, so I'll use css for now

-fx-font-family: 'Meiryo UI';

I tried to specify
The font of the running application is no longer Meiryo UI, but Meiryo.

Is Meiryo UI no longer available from Java 9?

Meiryo UI is selectable in Java 8 environments
Meiryo UI cannot be selected in Java 9 environment

javafx

2022-09-30 15:02

1 Answers

When I ran Scene Builder 9, pasted Button and Text into the layout, and popped up a list of fonts in the Family list box from the Font column in those Properties, both Meiryo UI and Meiryo appeared.

Also, in the Style column of the Properties JavaFX CSS category,

-fx-font-family 'Meiryo UI'

I tried setting it to , and it appeared in Meiryo UI font.

The operating system is Windows 10.


2022-09-30 15:02

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.