Skip to content

Commit

Permalink
Embed font
Browse files Browse the repository at this point in the history
  • Loading branch information
ManfredKarrer committed Apr 4, 2016
1 parent 64dc97f commit 3158f0d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/src/main/java/io/bitsquare/app/Log.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static void setup(String fileName, boolean useDetailedLogging) {
rollingPolicy.start();

triggeringPolicy = new SizeBasedTriggeringPolicy();
triggeringPolicy.setMaxFileSize("1MB");
triggeringPolicy.setMaxFileSize("10MB");
triggeringPolicy.start();

PatternLayoutEncoder encoder = new PatternLayoutEncoder();
Expand All @@ -60,7 +60,7 @@ public static void setup(String fileName, boolean useDetailedLogging) {
appender.start();

logbackLogger = loggerContext.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.TRACE);
logbackLogger.setLevel(useDetailedLogging ? Level.TRACE : Level.WARN);
logbackLogger.addAppender(appender);

// log errors in separate file
Expand Down
6 changes: 6 additions & 0 deletions gui/src/main/java/io/bitsquare/app/BitsquareApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
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;
Expand Down Expand Up @@ -136,6 +137,8 @@ public void start(Stage primaryStage) throws IOException {

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)
Expand Down Expand Up @@ -203,6 +206,9 @@ else if (Utilities.isWindows())
// make the UI visible
primaryStage.show();

Font fon = Font.getDefault();
Font fonds = Font.getDefault();

//showDebugWindow();
} catch (Throwable throwable) {
showErrorPopup(throwable, false);
Expand Down
2 changes: 2 additions & 0 deletions gui/src/main/java/io/bitsquare/gui/bitsquare.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions package/linux/create_32bit_app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ rm gui/deploy/LICENSE
mv "gui/deploy/bundles/bitsquare-$fullVersion.deb" "gui/deploy/Bitsquare-32bit-$fullVersion.deb"
rmdir gui/deploy/bundles
cp "gui/deploy/Bitsquare-32bit-$fullVersion.deb" "/home/bitsquare/Desktop/sf_vm_shared_ubuntu14_32bit/Bitsquare-32bit-$fullVersion.deb"
cp "gui/deploy/Bitsquare-32bit-$fullVersion.deb" "/home/bitsquare/Desktop/Bitsquare-32bit-$fullVersion.deb"

cd package/linux

0 comments on commit 3158f0d

Please sign in to comment.