Skip to content

Commit

Permalink
Merge pull request #115 from CSC207-2022F-UofT/change_table_font
Browse files Browse the repository at this point in the history
[*] Changed the font of the table to Microsoft YaHei UI
  • Loading branch information
Lei-Tin authored Dec 8, 2022
2 parents 5f792b9 + 9df56e0 commit f0e624e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/billgates/view/gui/FontSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
public class FontSettings extends Font{

public FontSettings(int fontSize) {
super("微软雅黑", Font.BOLD, fontSize);
super("Microsoft YaHei UI", Font.BOLD, fontSize);
}

// Add a new constructor to change font later, with parameter of font and font size
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/billgates/view/gui/TopMenuBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TopMenuBar extends JMenuBar {
private final static Color[] COLORS = new Color[]{new Color(240, 140, 170), Color.RED,
Color.ORANGE, Color.YELLOW, Color.GREEN, Color.CYAN, Color.BLUE, Color.PINK, Color.WHITE
};
private final static String[] FONTS = new String[]{"微软雅黑", "Tahoma", "Times New Roman",
private final static String[] FONTS = new String[]{"Microsoft YaHei UI", "Tahoma", "Times New Roman",
"Helvetica", "Arial", "Impact", "Verdana", "Century", "Copperplate"};
private final JMenu fileMenu = new GeneralMenu("File");
private final JMenu settingsMenu = new GeneralMenu("Settings");
Expand Down

0 comments on commit f0e624e

Please sign in to comment.