瀏覽代碼

Register font fix for multiple platforms

Min 4 年之前
父節點
當前提交
553b5462f1
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      msp430emu/emulator.py

+ 4 - 1
msp430emu/emulator.py

@@ -472,7 +472,10 @@ class EmulatorWindow(wx.Frame):
 class RegisterPanel(wx.Panel):
     def __init__(self, parent, emu: Emulator):
         wx.Panel.__init__(self, parent)
-        self.font = wx.Font(wx.FontInfo(11).Family(wx.FONTFAMILY_TELETYPE))
+        if "win" in sys.platform:
+            self.font = wx.Font(wx.FontInfo(10).Family(wx.FONTFAMILY_TELETYPE).Bold(True))
+        else:
+            self.font = wx.Font(wx.FontInfo(11).Family(wx.FONTFAMILY_TELETYPE))
         self.box = wx.BoxSizer(wx.HORIZONTAL)
         self.emu = emu
         self.regs_port1 = {name: None for name in emu.REG_NAMES_PORT1}