import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.layout.VBox; import javafx.scene.text.Font; import javafx.stage.Stage; public class Font02_3NG extends Application { public void start(Stage stage) throws Exception { // Label label_3 = new Label( "ラベル 3 \n フォント MS明朝" ); Font font3 = new Font( "MS 明朝", 32 ); // MS Mincho label_3.setFont( font3 ); System.out.println( font3 ); // VBox root = new VBox(); root.setSpacing( 10 ); root.getChildren().addAll( label_3 ); // Scene scene = new Scene(root); stage.setScene(scene); stage.setTitle("Font02_3NG"); stage.show(); } public static void main(String[] args) { launch(args); } } //---------------------------- /* MS 明朝 : OK Windows7 JavaFX 2.1 b07 b08 WindowsXP JavaFX 2.1 Windows7 JavaFX 2.0.3 MS 明朝 : NG Windows7 JavaFX 2.1 b09 or later */