diff options
| author | Adrien Tétar | 2015-10-31 17:01:25 +0100 | 
|---|---|---|
| committer | Adrien Tétar | 2015-10-31 17:01:25 +0100 | 
| commit | 44e6a231125c4103d8dc8edbb200ce2f327f1e31 (patch) | |
| tree | b3050fbb8509ef54643f4567c0e9a9a6bec9edee /Lib/defconQt/objects | |
| parent | 16c2f16dcdb17c997f2153a89a423c4e1ca86f79 (diff) | |
| parent | 6f131223c6821651dbd97c0c6aaff8aa1e6b90b2 (diff) | |
| download | trufont-44e6a231125c4103d8dc8edbb200ce2f327f1e31.tar.bz2 | |
Merge pull request #104 from trufont/patch-11
Minor improvements throughout
Diffstat (limited to 'Lib/defconQt/objects')
| -rw-r--r-- | Lib/defconQt/objects/defcon.py | 8 | 
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/defconQt/objects/defcon.py b/Lib/defconQt/objects/defcon.py index 24f585f..496f1c6 100644 --- a/Lib/defconQt/objects/defcon.py +++ b/Lib/defconQt/objects/defcon.py @@ -19,9 +19,7 @@ class TFont(Font):          if not override:              if name in self:                  return None -        # XXX(defcon): newGlyph should return the glyph -        self.newGlyph(name) -        glyph = self[name] +        glyph = self.newGlyph(name)          glyph.width = width          # TODO: list ought to be changeable from AGL2UV          if addUnicode: @@ -117,8 +115,8 @@ class TPoint(Point):  class GlyphSet(object):      __slots__ = ["_name", "_glyphNames"] -    def __init__(self, glyphNames, name=None): -        self._name = name +    def __init__(self, glyphNames, name): +        self._name = str(name)          self._glyphNames = glyphNames      def _get_name(self):  | 
