Skip to content

Commit accacb3

Browse files
committed
Fix Windows font bug
1 parent 1e25a05 commit accacb3

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

ui/src/main/resources/edu/wpi/grip/ui/AboutDialog.fxml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<?import javafx.scene.text.Font?>
1111
<?import javafx.scene.text.Text?>
1212

13+
<?import java.net.URL?>
1314
<VBox fx:id="root" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity"
1415
prefHeight="330.0" prefWidth="600.0" stylesheets="@GRIP.css" xmlns="http://javafx.com/javafx/8.0.65"
1516
xmlns:fx="http://javafx.com/fxml/1" fx:controller="edu.wpi.grip.ui.AboutDialogController">
@@ -28,12 +29,12 @@
2829
<children>
2930
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="GRIP">
3031
<font>
31-
<Font name="Roboto Bold" size="64.0" />
32+
<Font name="Roboto" style="BOLD" size="64.0" />
3233
</font>
3334
</Text>
3435
<Text fx:id="versionNumberText" strokeType="OUTSIDE" strokeWidth="0.0" text="Version 0.0.0">
3536
<font>
36-
<Font name="Roboto Regular" size="14.0" />
37+
<Font name="Roboto" size="14.0" />
3738
</font>
3839
</Text>
3940
<Pane VBox.vgrow="ALWAYS" />
@@ -43,7 +44,7 @@
4344
<children>
4445
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="➔ Github">
4546
<font>
46-
<Font name="Roboto Regular" size="14.0" />
47+
<Font name="Roboto" size="14.0" />
4748
</font>
4849
</Text>
4950
</children>
@@ -66,7 +67,7 @@
6667
<children>
6768
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="➔ ScreenSteps Documentation">
6869
<font>
69-
<Font name="Roboto Regular" size="14.0" />
70+
<Font name="Roboto" size="14.0" />
7071
</font>
7172
</Text>
7273
</children>
@@ -94,7 +95,7 @@
9495
<Pane HBox.hgrow="ALWAYS" />
9596
<Text fill="#818181" strokeType="OUTSIDE" strokeWidth="0.0" text="GRIP is licensed under a 3 Clause BSD License">
9697
<font>
97-
<Font name="Roboto Regular" size="12.0" />
98+
<Font name="Roboto" size="12.0" />
9899
</font></Text>
99100
<Pane HBox.hgrow="ALWAYS" />
100101
</children>
@@ -103,4 +104,8 @@
103104
</padding>
104105
</HBox>
105106
</children>
107+
<stylesheets>
108+
<URL value="@roboto/Roboto.css"/>
109+
<URL value="@GRIP.css"/>
110+
</stylesheets>
106111
</VBox>

0 commit comments

Comments
 (0)