Skip to content
Snippets Groups Projects
Commit 77f62b17 authored by jez04's avatar jez04
Browse files

feat: add custom font

parent 89b027d4
Branches solution
No related merge requests found
......@@ -7,6 +7,7 @@ import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.text.Font;
import javafx.stage.Stage;
import javafx.stage.WindowEvent;
......@@ -28,6 +29,7 @@ public class App extends Application {
@Override
public void start(Stage primaryStage) {
Font.loadFont(this.getClass().getResourceAsStream("/TRON.TTF"), 20);
try {
this.primaryStage = primaryStage;
switchToMenu();
......
File added
......@@ -46,6 +46,7 @@ Label {
-fx-border-radius:30.0px;
-fx-text-fill: white;
-fx-font-size: 20.0px;
-fx-font-family: "TRON";
-fx-background-radius:30.0px;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment