set fonts of linux

This commit is contained in:
nisihara1 2017-09-14 20:45:16 +09:00
parent 197ddd0b35
commit 7da5892929
5 changed files with 23 additions and 25 deletions

View File

@ -10,66 +10,66 @@
/* Font Family for Linux */
.logo-text {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.icon-web {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.icon-atoms {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.icon-upf {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.icon-modeler {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.icon-slab {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.result-icon-label {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.result-icon-sublabel {
-fx-font-family: "Arial Black";
-fx-font-family: "Noto Sans CJK JP Black";
}
.result-graph-note-text {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.result-graph-legend-text {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.chart-title {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.chart-legend-item {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.axis {
-fx-tick-label-font-family: "Times New Roman";
-fx-tick-label-font-family: "Nimbus Roman No9 L";
}
.axis-label {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.coord-field {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}
.element-button {
-fx-font-family: "Times New Roman";
-fx-font-family: "Nimbus Roman No9 L";
}

View File

@ -33,7 +33,7 @@ public class AtomsSample extends Group implements AtomEventListener, CellEventLi
private static final double BETWEEN_ATOMS = 2.32;
private static final double TEXT_SIZE = 0.8;
private static final String TEXT_FONT = FontTools.getTimesNewRoman();
private static final String TEXT_FONT = FontTools.getRomanFont();
private Cell cell;

View File

@ -26,7 +26,7 @@ public class XYZAxis extends Group {
private static final double CYLINDER_RADIUS = 0.03;
private static final double CYLINDER_HEIGHT = 1.00;
private static final double TEXT_SIZE = 0.50;
private static final String TEXT_FONT = FontTools.getTimesNewRoman();
private static final String TEXT_FONT = FontTools.getRomanFont();
private Design design;

View File

@ -17,20 +17,18 @@ public final class FontTools {
// NOP
}
public static String getArialBlack() {
public static String getBlackFont() {
if (Environments.isLinux()) {
// TODO
return "";
return "Noto Sans CJK JP Black";
} else {
return "Arial Black";
}
}
public static String getTimesNewRoman() {
public static String getRomanFont() {
if (Environments.isLinux()) {
// TODO
return "";
return "Nimbus Roman No9 L";
} else {
return "Times New Roman";

View File

@ -18,7 +18,7 @@ import javafx.scene.text.Font;
public final class ElementButton extends Button {
private static final double TEXT_SIZE = 11.0;
private static final String TEXT_FONT = FontTools.getTimesNewRoman();
private static final String TEXT_FONT = FontTools.getRomanFont();
private Dialog<ElementButton> dialog;