180bpm

한글 폰트와 영문 폰트를 합치기 위한 머나먼 여정 본문

카테고리 없음

한글 폰트와 영문 폰트를 합치기 위한 머나먼 여정

powdersnow 2022. 3. 25. 21:11

예전엔 폰트크리에이터로 뚝딱뚝딱했는데 오늘은 뭐가 잘 안되었다.

 

NotoSans CJK와 Century Gothic을 합쳐달라는 요청이 와서 테스트를 돌려봤다

 

1. 폰트크리에이터 5.5로 파일 열기

-> 실패

OTF 파일을 못여는 문제가 있었다. TTF를 구해서 돌려봤으나 에러와 함께 사망

 

2. font forge의 스크립트를 쓰면 된대서 시도해봤다

-> 마찬가지로 OTF 파일이 안열림, 궁여지책으로 KR만 구해서 열었더니 열..리긴 하는데 병합이 안됨

KR의 TTF를 열었더니 어찌어찌 되더라

 

notosans OTF 됨,

notosans CJK OTF 안됨, notosans CJK TTF 안됨

notnosans CJK KR OTF 안됨, notnosans CJK KR TTF 됨

 

메인을 century gothic으로 두고 notosans를 서브로 두고

https://superuser.com/questions/490922/merging-two-fonts

 

Merging two fonts

How can I combine two fonts automatically, so glyphs those are not available in the first font, but available in second one can be merged into the first font?

superuser.com

#!/usr/local/bin/fontforge
Open($1)
SelectAll()
ScaleToEm(Strtol($3))
Generate("1.ttf")
Close()
Open($2)
SelectAll()
ScaleToEm(Strtol($3))
Generate("2.ttf")
Close()
Open("1.ttf")
MergeFonts("2.ttf")
Generate($4)
Close()


답변 내용대로 돌려봤더니 잘 나오긴 했는데..

영문이 깨지길래 메인의 em인 2048로 잡고 하니 잘 되었음

 

"C:\Program Files (x86)\FontForgeBuilds\bin\fontforge.exe" -lang=ff -script mergefonts.ff GOTHIC.ttf NotoSansKR-Regular.ttf 2048 mergedfont.ttf

Comments