mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-19 04:54:43 +08:00
20 lines
304 B
Python
20 lines
304 B
Python
from fontTools.ttLib import TTFont
|
|
|
|
|
|
class App(object):
|
|
|
|
def __init__(self):
|
|
pass
|
|
|
|
def get_xml(self):
|
|
font = TTFont('下载.woff')
|
|
font.saveXML('转换成xml文件.xml')
|
|
|
|
def run(self):
|
|
self.get_xml()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
app = App()
|
|
app.run()
|