Skip to content

Commit d6f2889

Browse files
committed
a
1 parent 10c3318 commit d6f2889

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

examples/demo.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
from sfnttools.contract import SfntVersion
33
from sfnttools.font import SfntFont, SfntFontCollection
44

5-
if __name__ == '__main__':
6-
# file_path = assets_dir.joinpath('source-han-sans', 'SourceHanSansSC-VF.ttf.woff2')
7-
file_path = assets_dir.joinpath('demo', 'demo.otf.woff')
8-
fonts = SfntFont.load(file_path)
9-
print(fonts)
105

11-
a = SfntVersion('asd')
6+
def main():
7+
example_file_path = assets_dir.joinpath('demo', 'demo.otf.woff2')
8+
example_font = SfntFont.load(example_file_path)
9+
10+
11+
if __name__ == '__main__':
12+
main()

0 commit comments

Comments
 (0)