diffusion-models opentype-fonts indic-scripts glyph-restyling font-audit harfbuzz lipika ssim-gates
Abstract
We present Srijika, a system for producing installable OpenType fonts for nine Brahmic scripts: Devanagari, Tamil, Bengali, Telugu, Kannada, Malayalam, Gujarati, Gurmukhi, and Odia. Rather than generating fonts from scratch, Srijika restyles glyph outlines from shaping-complete template fonts. It preserves the template's cmap and GSUB closure and its GPOS data under a documented metric policy, making every output a complete font by construction. This addresses a central challenge of Indic font generation: hundreds to thousands of conjuncts, half forms, and matra variants must remain mutually consistent under OpenType shaping.
Srijika produces 66 TTFs: 57 curated presets and nine open-vocabulary showcase fonts. All pass the OpenType Sanitizer, while HarfBuzz and CoreText reproduce the template glyph-ID sequences on conjunct-heavy probes. A full-closure audit covering 80,915 glyphs and 54,812 anchors quantifies metric changes. Natural-language style selection uses Lipika, a retrieval index over approximately 650 open-license font families. A reference-conditioned latent diffusion model redraws template glyphs in the selected style, followed by content gating, harmonization, and shaped-cluster verification with fallback to template outlines.
We evaluate against no-learning baselines. On diffusion-training-family-held-out SSIM gates, template copying outperforms generation on 50 of 56 faces. Style movement is measurable only with an internal same-model embedding whose training corpus includes the held-out families, so these results require caution. A learned baseline, independent style metric, and human study are outside this report's scope. Our contributions are the layout-reusing formulation and pipeline, its nine-script audit and benchmark, and a negative-results catalogue covering failed conditioning, objective choices, and data-hull limits of reference-guided restyling.
한국어 요약
한 줄 요약
Srijika는 9개의 브라흐미 글꼴 스크립트에 대한 OpenType 레이아웃 재사용 기반 글꼴 리스타일링 시스템이다.
핵심 기여도
- 템플릿의 cmap, GSUB, GPOS 구조를 재사용하는 레이아웃-재사용 방식을 제안.
- 80,915개의 글리프와 54,812개의 앵커를 포함한 전체 클로저 감사 수행.
- 650개 오픈 라이선스 글꼴 패밀리 기반의 자연어 스타일 선택 모듈 Lipika 도입.
- 실패한 조건부 리스타일링, 학습 목적 오염, 데이터 헐 경계를 포함한 부정적 결과 카탈로그 제공.
핵심 아이디어
Srijika는 브라흐미 스크립트(데바나가리, 타밀 등 9개)에 대한 OpenType 글꼴을 생성하는 시스템으로, 기존 템플릿 글꼴의 레이아웃 구조를 재사용함으로써 수천 개의 결합체(conjuncts), 반형(half forms), 마트라(matra variants)를 일관되게 유지한다. 이는 OpenType 서식이 요구하는 수많은 글리프와 규칙을 일일이 생성하는 대신, 템플릿의 cmap, GSUB, GPOS 구조를 그대로 재사용함으로써 가능하다.
핵심 아이디어는 "글꼴을 처음부터 생성하지 않고, 템플릿을 리스타일링"하는 것이다. 이는 레이아웃 구조를 학습하지 않고 재사용함으로써, 리스타일링 품질과 레이아웃 논리를 분리할 수 있다는 점에서 혁신적이다. Lipika라는 자연어 기반 검색 인덱스를 통해 650개의 오픈 라이선스 글꼴 패밀리 중 스타일을 선택하고, 참조 조건부 잠재 확산 모델을 사용해 템플릿 글리프를 리스타일링한다.
기술적 접근법
- **템플릿 레이아웃 재사용**: cmap, GSUB은 그대로 유지되고, GPOS는 문서화된 메트릭 정책에 따라 재사용.
- **Lipika**: 자연어 스타일 선택을 위한 650개 오픈 라이선스 글꼴 패밀리 기반 검색 인덱스.
- **참조 조건부 잠재 확산 모델**: 템플릿 글리프를 리스타일링.
- **서빙 파이프라인**: 콘텐츠 게이트, 하모나이제이션, 형성된 클러스터 검증 및 복구.
- **훈련 레시피**: 스크립트당 약 20–48k 스텝으로 확장 가능.
- **하드 프로브**: HarfBuzz와 CoreText로 템플릿 글리프 ID 일치 확인.
- **메트릭 감사**: 80,915개 글리프, 54,812개 앵커를 기반으로 메트릭 변화량 측정.
주요 결과
- **SSIM 게이트 평가**: 56개 글꼴 중 50개에서 템플릿 복사가 생성보다 우수함.
- **Alkatra 패밀리**: 0.85–0.94의 높은 SSIM 점수 달성.
- **템플릿 복사 vs 생성**: 56개 글꼴 중 50개에서 템플릿 복사가 생성보다 50% 이상 우수함.
- **ODIA 스크립트**: 6개 패밀리만 존재하는 상황에서 57개 커레이션 프리셋과 9개 오픈-보카бу러리 글꼴 제공.
의의 및 한계
Srijika는 브라흐미 스크립트 글꼴 생성의 구조적 문제를 해결하며, OpenType 레이아웃 재사용을 통해 일관성 있는 글리프 생성을 가능하게 한다. 특히, 9개 스크립트에 대한 감사와 벤치마크를 제공함으로써, 글꼴 생성 연구의 기초가 될 수 있다. 또한, 실패한 조건부 리스타일링, 학습 목적 오염, 데이터 헐 경계를 포함한 부정적 결과 카탈로그는 유사한 연구에서 반복될 수 있는 문제를 사전에 파악하는 데 기여한다.
그러나, 학습 기반 베이스라인, 독립적인 스타일 메트릭, 인간 평가 실험은 포함되지 않았으며, 이는 결과의 일반화 가능성에 한계를 초래할 수 있다. 또한, 생성된 글꼴의 시각적 정렬 품질과 GPOS 행동은 감사 범위 밖에 있어, 실용적 적용 시 추가 검증이 필요하다.
실용적 활용
Srijika는 브라흐미 스크립트를 사용하는 인도 지역의 디지털 콘텐츠 제작, 웹 및 모바일 글꼴 제공, 오픈 라이선스 글꼴 확장에 활용 가능하다. 특히, 글꼴 디자인 비용을 줄이고, 일관된 레이아웃 구조를 유지하면서 다양한 스타일을 제공할 수 있어, 글꼴 개발자, 디자이너, 언어 학자에게 유용한 도구가 될 수 있다.