Google "Google fonts". Also, google to see if you can find some fonts that are naturally small caps
. I found one. You can see how to use Google fonts in a JavaFX
app below.
code from here.
import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.stage.Stage;
/**
*
* @author Sedrick
*/
public class JavaFXApplication44 extends Application {
@Override
public void start(Stage primaryStage) {
Label label = new Label("Hello @FontFace\n-- Gafata --");
label.setStyle("-fx-font-family: 'IM Fell French Canon SC', serif; -fx-font-size: 80;");
Scene scene = new Scene(label);
scene.getStylesheets().add("https://fonts.googleapis.com/css?family=IM+Fell+French+Canon+SC");
primaryStage.setTitle("Hello @FontFace");
primaryStage.setScene(scene);
primaryStage.show();
}
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
launch(args);
}
}
