Corrections for fonts

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-05-19 22:32:40 +00:00
parent 67644c1dd8
commit 0d9b889148
2 changed files with 2 additions and 2 deletions

View File

@@ -282,7 +282,7 @@ class ParamFont(PPanel):
fontFamiliesWx2Xml.get(font.GetFamily(), "default"), fontFamiliesWx2Xml.get(font.GetFamily(), "default"),
fontStylesWx2Xml.get(font.GetStyle(), "normal"), fontStylesWx2Xml.get(font.GetStyle(), "normal"),
fontWeightsWx2Xml.get(font.GetWeight(), "normal"), fontWeightsWx2Xml.get(font.GetWeight(), "normal"),
str(font.GetUnderlined()), str(int(font.GetUnderlined())),
font.GetFaceName().encode(), font.GetFaceName().encode(),
encName encName
] ]

View File

@@ -296,7 +296,7 @@ class xxxObject:
# This is a little special: it is both xxxObject and xxxNode # This is a little special: it is both xxxObject and xxxNode
class xxxParamFont(xxxObject, xxxNode): class xxxParamFont(xxxObject, xxxNode):
allParams = ['size', 'style', 'weight', 'family', 'underlined', allParams = ['size', 'family', 'style', 'weight', 'underlined',
'face', 'encoding'] 'face', 'encoding']
def __init__(self, parent, element): def __init__(self, parent, element):
xxxObject.__init__(self, parent, element) xxxObject.__init__(self, parent, element)