のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

2020-01-21から1日間の記事一覧

plistlib.dump(obj, fp)

defcon/object/font.py def save( self, path=None, formatVersion=None, removeUnreferencedImages=False, progressBar=None, structure=None, ): """ Save the font to **path**. If path is None, the path from the last save or when the font was firs…

ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters

import defcon import extractor ufo = defcon.Font() extractor.extractUFO("./font.otf", ufo) ufo.save("./font_otf.ufo") pypi.org UnicodeかAscii以外の文字があるから、エラーなのかな? myExtracotr2.py Traceback (most recent call last): File "fo…