Use css to include fonts

This commit is contained in:
Christoph Atteneder 2018-02-07 11:43:47 +01:00
parent 2276240c1c
commit d093453134
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
2 changed files with 20 additions and 4 deletions

View file

@ -232,10 +232,6 @@ public class BisqApp extends Application {
scene = new Scene(mainView.getRoot(), 1200, 710); //740
Font.loadFont(getClass().getResource("/fonts/Verdana.ttf").toExternalForm(), 13);
Font.loadFont(getClass().getResource("/fonts/VerdanaBold.ttf").toExternalForm(), 13);
Font.loadFont(getClass().getResource("/fonts/VerdanaItalic.ttf").toExternalForm(), 13);
Font.loadFont(getClass().getResource("/fonts/VerdanaBoldItalic.ttf").toExternalForm(), 13);
scene.getStylesheets().setAll(
"/io/bisq/gui/bisq.css",
"/io/bisq/gui/images.css",

View file

@ -20,6 +20,26 @@ lower gradient color on tab: dddddd
bg color of non edit textFields: fafafa
*/
@font-face {
src: url("/fonts/FiraMono-Regular.ttf");
}
@font-face {
src: url("/fonts/FiraSans-Regular.ttf");
}
@font-face {
src: url("/fonts/FiraSans-Bold.ttf");
}
@font-face {
src: url("/fonts/FiraSans-BoldItalic.ttf");
}
@font-face {
src: url("/fonts/FiraSans-Italic.ttf");
}
.root {
-bs-very-dark-grey3: #444; /* 3 usages */
-bs-grey: #666666; /* 8 usages */