Changeset 173

Show
Ignore:
Timestamp:
03/10/09 04:18:03 (3 years ago)
Author:
erik
Message:

This fixes a problem while exporting a font without classes to UFO format 1.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Lib/robofab/objects/objectsFL.py

    r171 r173  
    10351035                # this should only be used for UFO format version 1 
    10361036                flFont = self.naked() 
    1037                 fontLib["org.robofab.opentype.classes"] = _normalizeLineEndings(flFont.ot_classes).rstrip() + "\n" 
    1038                 if flFont.features: 
     1037                cls = flFont.ot_classes 
     1038                if cls is not None: 
     1039                        fontLib["org.robofab.opentype.classes"] = _normalizeLineEndings(cls).rstrip() + "\n" 
     1040                if flFontA.features: 
    10391041                        features = {} 
    10401042                        order = []