Srijika:为九种印度文字复用 OpenType 布局的字体重塑

·

研究论文 · 2026/09/18

我们提出 Srijika,一个为九种婆罗米系文字(天城文、泰米尔文、孟加拉文、泰卢固文、卡纳达文、马拉雅拉姆文、古吉拉特文、古木基文和奥里亚文)生成可安装 OpenType 字体的系统。Srijika 并非从零生成字体,而是从塑形完整的模板字体中重新设计字形轮廓。它在文档化的度量策略下保留模板的 cmap、GSUB 闭包及其 GPOS 数据,使每个输出在构造上就是完整字体。这解决了印度文字字体生成的核心挑战:数百到数千个连字、半形式和元音符号变体必须在 OpenType 塑形下保持相互一致。Srijika 生成 66 个 TTF:57 个精选预设和九个开放词汇展示字体。所有字体均通过 OpenType Sanitizer,而 HarfBuzz 和 CoreText 在连字密集探针上重现模板字形 ID 序列。覆盖 80,915 个字形和 54,812 个锚点的全闭包审计量化了度量变化。自然语言风格选择使用 Lipika,一个基于约 650 个开放许可字体家族的检索索引。参考条件潜在扩散模型以所选风格重绘模板字形,随后进行内容门控、协调和塑形簇验证,并回退到模板轮廓。我们与无学习基线进行评估。在扩散训练家族留出的 SSIM 门控上,模板复制在 56 个字体面中的 50 个上优于生成。风格移动仅能通过内部同模型嵌入测量,其训练语料包含留出家族,因此这些结果需谨慎对待。学习基线、独立风格度量和人类研究不在本报告范围内。我们的贡献是布局重用公式和流程、其九文字审计和基准,以及涵盖失败条件、目标选择和数据外壳限制的负面结果目录。

该工作解决了印度文字字体生成中连字和变体一致性的核心难题,通过布局重用确保字体完整性,并提供了大规模审计和负面结果,对字体工程和低资源文字生成具有重要参考价值。

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.

阅读原文

参与讨论