Embed font

This commit is contained in:
Manfred Karrer 2016-04-04 12:06:59 +02:00
parent 64dc97f1bc
commit 3158f0d386
4 changed files with 11 additions and 2 deletions

View file

@ -54,6 +54,7 @@ import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.Pane;
import javafx.scene.layout.StackPane;
import javafx.scene.text.Font;
import javafx.stage.Modality;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
@ -136,6 +137,8 @@ public class BitsquareApp extends Application {
Version.setBtcNetworkId(injector.getInstance(BitsquareEnvironment.class).getBitcoinNetwork().ordinal());
Font.loadFont(BitsquareAppMain.class.getResource("../../../lucida-grande.ttf").toExternalForm(), 12);
Storage.setDatabaseCorruptionHandler((String fileName) -> {
corruptedDatabaseFiles.add(fileName);
if (mainView != null)
@ -203,6 +206,9 @@ public class BitsquareApp extends Application {
// make the UI visible
primaryStage.show();
Font fon = Font.getDefault();
Font fonds = Font.getDefault();
//showDebugWindow();
} catch (Throwable throwable) {
showErrorPopup(throwable, false);

View file

@ -23,6 +23,8 @@ bg color of non edit textFields: fafafa
/* Splash */
.root {
-fx-font-family: Lucida Grande;
-bs-grey: #666666;
-bs-bg-grey: #dddddd;
-bs-light-grey: #cccccc;