diff --git a/.gitignore b/.gitignore index 6304929..e0829c2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,4 @@ assets/ **/__pycache__/ -KawaiiMonoRegularPatched.ttf -KawaiiMonoRegularPatched.otf -KawaiiMonoRegularPatched.woff -KawaiiMonoRegularPatched.eot +out/ src/wget/__pycache__/ \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..a4ba98f --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +build: + python3 build.py + py3clean . + +install: build + cp out/KawaiiMonoRegularPatched.ttf ~/.local/share/fonts/KawaiiMonoRegular.ttf diff --git a/install.sh b/install.sh deleted file mode 100755 index 67f9f38..0000000 --- a/install.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/bash -python3 build.py -cp kawaiiPatched.ttf ~/.local/share/fonts/KawaiiMonoRegular.ttf diff --git a/src/build.py b/src/build.py index c644159..e5765c9 100644 --- a/src/build.py +++ b/src/build.py @@ -1,4 +1,5 @@ import fontforge +import os from . import NanumSquareNeo as NanumSquareNeoLoader from . import NotoMono as NotoMonoLoader @@ -37,7 +38,13 @@ def build(config=None): notoMono.close() # 생성 - kawaii.generate("kawaiiPatched.ttf") + if not os.path.exists("out"): os.mkdir("out") + kawaii.generate("out/"+"KawaiiMonoRegularPatched.ttf") + + # KawaiiMonoRegularPatched.ttf + # KawaiiMonoRegularPatched.otf + # KawaiiMonoRegularPatched.woff + # KawaiiMonoRegularPatched.eot # 파일 닫기 kawaii.close()