Changeset 93

Show
Ignore:
Timestamp:
07/28/08 18:23:45 (4 years ago)
Author:
erik
Message:

Test for glyph and font in the test.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Lib/robofab/pens/marginPen.py

    r92 r93  
    123123 
    124124        pt = (74, 216) 
    125         pen = MarginPen(f, pt[1]) 
    126         g.draw(pen)  
    127         print 'glyph margins', pen.getMargins() 
    128         print pen.getContourMargins() 
     125        if f is not None and g is not None: 
     126                pen = MarginPen(f, pt[1]) 
     127                g.draw(pen) 
     128                print 'glyph margins', pen.getMargins() 
     129                print pen.getContourMargins() 
     130        else: 
     131                print "no font or glyph"