diff options
author | Rafael Ortiz <rafael@activitycentral.com> | 2011-12-21 21:07:36 (GMT) |
---|---|---|
committer | Rafael Ortiz <rafael@activitycentral.com> | 2011-12-21 21:07:36 (GMT) |
commit | 60a145a8cec78a9d1f1c0bca50666bec4cbd0cf8 (patch) | |
tree | 5fe3110c95ab0fbb9a3956e4e5acb25c9315de84 | |
parent | abe44f436993235499034f87e85753505291880b (diff) |
style fixes
-rw-r--r-- | olpcgames/pangofont.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/olpcgames/pangofont.py b/olpcgames/pangofont.py index 81a2d7c..fb9a349 100644 --- a/olpcgames/pangofont.py +++ b/olpcgames/pangofont.py @@ -149,24 +149,24 @@ class PangoFont(object): def set_italic( self, italic=True ): """Set our "italic" value (style)""" if italic: - self.set_style( self.STYLE_ITALIC ) + self.set_style(self.STYLE_ITALIC) else: - self.set_style( self.STYLE_NORMAL ) - def set_style( self, style ): + self.set_style(self.STYLE_NORMAL) + def set_style(self, style): """Set our font description's pango-style""" - self.fd.set_style( style ) + self.fd.set_style(style) return self.fd.get_style() - def get_style( self ): + def get_style(self): """Get our font description's pango-style""" return self.fd.get_style() - def get_italic( self ): + def get_italic(self): """Return whether we are currently italicised""" - return self.fd.get_style() == self.STYLE_ITALIC # what about oblique? + return self.fd.get_style() == self.STYLE_ITALIC # what about oblique? - def set_underline( self, underline=True ): + def set_underline(self, underline=True): """Set our current underlining properly""" self.underline = underline - def get_underline( self ): + def get_underline(self): return self.underline class SysFont(PangoFont): |