浏览代码

wxGUI/composer: fix font issue on Windows

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56360 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 12 年之前
父节点
当前提交
3ec1f775fb
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      gui/wxpython/psmap/dialogs.py

+ 2 - 3
gui/wxpython/psmap/dialogs.py

@@ -3116,9 +3116,8 @@ class LegendDialog(PsmapDialog):
                 self.vLegendDict['font'] = self.panelVector.font['fontCtrl'].GetStringSelection()
                 self.vLegendDict['fontsize'] = self.panelVector.font['fontSizeCtrl'].GetValue()
                 dc = wx.ClientDC(self)
-                font = dc.GetFont()
-                dc.SetFont(wx.Font(pointSize = self.vLegendDict['fontsize'], family = font.GetFamily(),
-                                   style = font.GetStyle(), weight = wx.FONTWEIGHT_NORMAL))
+                dc.SetFont(wx.Font(pointSize = self.vLegendDict['fontsize'], family = wx.FONTFAMILY_DEFAULT,
+                                   style = wx.FONTSTYLE_NORMAL, weight = wx.FONTWEIGHT_NORMAL))
                 #size
                 width = self.unitConv.convert(value = float(self.panelVector.widthCtrl.GetValue()),
                                               fromUnit = currUnit, toUnit = 'inch')