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:
@@ -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
|
||||||
]
|
]
|
||||||
|
@@ -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)
|
||||||
|
Reference in New Issue
Block a user