feat: pip 안 쓰고 git submodule 로 wget 을 가져옴

master
Qwreey 2023-01-19 21:54:55 +09:00
parent 4505b690a4
commit 742a2fbf85
5 changed files with 15 additions and 4 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "src/wget"]
path = src/wget
url = https://github.com/steveeJ/python-wget

View File

@ -1,6 +1,7 @@
# TODO: 블록 글자 추가
# TODO: 기울임꼴(ah 같은 특수 기울임도) 추가
# TODO: 합자 추가
config = {
# -------------------------------------------

View File

@ -10,7 +10,7 @@ def getFontPath():
wgetHandler.download(github_NotoSansMonoCJKkr,"assets/NotoMonoCJKkr.otf")
return "assets/NotoMonoCJKkr.otf"
def pasteGlyphs(target,source,baseSize=550):
def pasteGlyphs(target,source,baseSize=550,JapaneseGlyphs=False,CJKUnifiedIdeographs=False):
source.cidFlatten()
def select(font):

View File

@ -13,7 +13,7 @@ def build(config=None):
kawaii.encoding = 'UnicodeFull'
# 한글 글리프 붇여넣기
if config.CopyKoreanGlyphs:
if config.get("CopyKoreanGlyphs"):
# 나눔 스퀘어 네오 다운로드/불러오기
nanumSquareNeo = fontforge.open(
NanumSquareNeoLoader.getFontPath())
@ -22,11 +22,17 @@ def build(config=None):
target=kawaii,baseSize=550,
source=nanumSquareNeo)
if config.CopyJPGlyphs or config.Copy:
if (config.get("CopyJapaneseGlyphs") or
config.get("CopyCJKUnifiedIdeographs")):
# 노토 모노 다운로드/불러오기
notoMono = fontforge.open(
NotoMonoLoader.getFontPath())
# 글리프 붇여넣기
NotoMonoLoader.pasteGlyphs(
JapaneseGlyphs=config.get("CopyJapaneseGlyphs") or False,
CJKUnifiedIdeographs=config.get("CopyCJKUnifiedIdeographs") or False,
target=kawaii,baseSize=550,
source=nanumSquareNeo)
# 생성
kawaii.generate("kawaiiPatched.ttf")

1
src/wget Submodule

@ -0,0 +1 @@
Subproject commit fdd3a0f8404ccab90f939f9952af139e6c55142a