のねのBlog

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

2019-12-12から1日間の記事一覧

This dictionary creation could be rewritten as a dictionary literal

This dictionary creation could be rewritten as a dictionary literal tonari-it.com

default argument value is mutable

default argument value is mutable blog.cosnomi.com

extractor

extractor $ pip install ufo-extractor import extractor import defcon ufo = defcon.Font() extractor.extractUFO("/path/to/MyFont.ttf", ufo) ufo.save("/path/to/MyFont.ufo") github.com

getBestCmap

class table__c_m_a_p(DefaultTable.DefaultTable): def getcmap(self, platformID, platEncID): for subtable in self.tables: if (subtable.platformID == platformID and subtable.platEncID == platEncID): return subtable return None # not found こ…