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

feat: add custom font

parent 89b027d4
Branches
No related merge requests found
...@@ -7,6 +7,7 @@ import javafx.application.Application; ...@@ -7,6 +7,7 @@ import javafx.application.Application;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
import javafx.scene.Parent; import javafx.scene.Parent;
import javafx.scene.Scene; import javafx.scene.Scene;
import javafx.scene.text.Font;
import javafx.stage.Stage; import javafx.stage.Stage;
import javafx.stage.WindowEvent; import javafx.stage.WindowEvent;
...@@ -28,6 +29,7 @@ public class App extends Application { ...@@ -28,6 +29,7 @@ public class App extends Application {
@Override @Override
public void start(Stage primaryStage) { public void start(Stage primaryStage) {
Font.loadFont(this.getClass().getResourceAsStream("/TRON.TTF"), 20);
try { try {
this.primaryStage = primaryStage; this.primaryStage = primaryStage;
switchToMenu(); switchToMenu();
......
File added
...@@ -46,6 +46,7 @@ Label { ...@@ -46,6 +46,7 @@ Label {
-fx-border-radius:30.0px; -fx-border-radius:30.0px;
-fx-text-fill: white; -fx-text-fill: white;
-fx-font-size: 20.0px; -fx-font-size: 20.0px;
-fx-font-family: "TRON";
-fx-background-radius:30.0px; -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