瀏覽代碼

wxGUI/preferences: fix font dialog on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@61808 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 10 年之前
父節點
當前提交
6a63cdd614
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      gui/wxpython/gui_core/preferences.py

+ 3 - 3
gui/wxpython/gui_core/preferences.py

@@ -1467,9 +1467,9 @@ class PreferencesDialog(PreferencesBaseDialog):
         if size == None or size == 0: size = 11
         size = float(size)
         if type == None or type == '': type = 'Courier'
-        
-        outfont = wx.Font(size, wx.FONTFAMILY_MODERN, wx.NORMAL, 0, faceName = type)
-        
+
+        outfont = wx.Font(size, wx.FONTFAMILY_MODERN, wx.NORMAL, wx.FONTWEIGHT_NORMAL, faceName=type)
+
         fontdata = wx.FontData()
         fontdata.EnableEffects(True)
         fontdata.SetColour('black')