Changeset 198

Show
Ignore:
Timestamp:
06/25/09 03:50:25 (9 months ago)
Author:
erik
Message:

Check the type of the path string before it is passed to the fontlab GenerateFont? method. FL doesn't like unicode strings.

Files:

Legend:

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

    r197 r198  
    940940                fileName = '.'.join([fileName, suffix]) 
    941941                finalPath = os.path.join(filePath, fileName) 
     942                if isinstance(finalPath, unicode): 
     943                        finalPath = finalPath.encode("utf-8") 
    942944                # generate is (oddly) an application level method 
    943945                # rather than a font level method. because of this,