~ubuntu-branches/ubuntu/trusty/python-enable/trusty

« back to all changes in this revision

Viewing changes to enthought/savage/compliance/svg_component.py

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2011-04-05 21:54:28 UTC
  • mfrom: (1.1.5 upstream)
  • mto: (8.2.1 sid)
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110405215428-1x2wtubz3ok2kxaq
Tags: upstream-3.4.1
ImportĀ upstreamĀ versionĀ 3.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
from enthought.enable.api import Component
8
8
from enthought.traits.api import Any, Array, Bool, Float
9
 
from enthought.kiva import Font
 
9
from enthought.kiva.fonttools import Font
10
10
 
11
11
 
12
12
if sys.platform == 'win32':
43
43
        if self.document is None:
44
44
            # fixme: The Mac backend doesn't accept style/width as non-integers
45
45
            #        in set_font, but does for select_font...
46
 
            if sys.platform == 'darwin':            
 
46
            if sys.platform == 'darwin':
47
47
                gc.select_font("Helvetica", 36)
48
48
            else:
49
49
                gc.set_font(Font("Helvetica", 36))
65
65
            gc.scale_ctm(scale, -scale)
66
66
            self.document.render(gc)
67
67
            self.last_render = now() - start
68
 
            
 
68
 
69
69
        finally:
70
70
            gc.restore_state()
71
71
            if self.profile_this is not None: