Polaris MCFG

Metric-Compatible Font Generator — 재배포가 제한된 폰트(상용 / 사내 / 한컴 폰트류 등 임의의 소스 폰트)의 레이아웃 메트릭(advance width, ascender/descender, line gap)을 추출하여 자유 라이센스 폰트의 글리프 디자인에 결합한 새로운 폰트를 생성합니다. 원본 문서의 줄바꿈/페이지 분할은 유지하면서 라이센스 안전성을 확보합니다.

→ Live demo 열기   GitHub →

데모가 보여주는 것

기술적 핵심

로컬에서 사용

git clone https://github.com/PolarisOffice/polaris_mcfg
cd polaris_mcfg
python3 -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'

mcfg extract source.ttf -o source.metrics.json
mcfg generate \
  --metrics source.metrics.json \
  --design  free-license-font.ttf \
  --apply   global,advance,kerning,gsub \
  --match-upm \
  --output  out.ttf

라이센스

본 도구의 코드: MIT. 데모 폰트(Polaris NPM / Polaris PNM)는 NotoSansKR / Pretendard의 파생물이므로 SIL Open Font License 1.1 하에 배포되며, family name을 변경하여 OFL Reserved Font Name 정책을 준수합니다.