Skip to content

Commit

Permalink
[Fix] set default font on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
funa-tk committed Oct 2, 2019
1 parent ceed806 commit 56f5ad0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/core/packetproxy/gui/GUIMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ private void setLookandFeel() throws Exception {
//TODO FONT指定は一か所に集める
if (Utils.isWindows()) {
UIManager.getLookAndFeelDefaults().put("defaultFont", new Font("MS ゴシック", Font.PLAIN, 13));
} else if (Utils.isMac()) {
UIManager.getLookAndFeelDefaults().put("defaultFont", new Font("Hira Kaku Gothic Pro", Font.PLAIN, 12));
} else {
UIManager.getLookAndFeelDefaults().put("defaultFont", new Font("Arial", Font.PLAIN, 12));
}
Expand Down

0 comments on commit 56f5ad0

Please sign in to comment.