arXiv:2609.05661cs.CVSep 2026

Manuscript Offprint

arXiv:2609.05661

Srijika: OpenType-Layout-Reusing Font Restyling for Nine Indic Scripts

Anil Pai

Abstract

We present SRIJIKA, a system that produces installable OpenType fonts for nine Brahmic scripts — Devanagari, Tamil, Bengali, Telugu, Kannada, Malayalam, Gujarati, Gurmukhi, and Odia — by restyling the glyph outlines of shaping-complete template fonts rather than generating fonts from scratch. An Indic font is a shaping-engine contract: hundreds to thousands of conjuncts, half forms, and matra variants reached through OpenType substitution must be present and mutually consistent, and raster glyph generators stop short of this artifact. Template glyph replacement reuses the template's cmap and GSUB closure unchanged, and its GPOS data under a documented metric policy, so every output is a font by construction. The system ships 66 TTFs (57 curated presets and nine open-vocabulary showcase fonts); all pass the OpenType Sanitizer, HarfBuzz and CoreText reproduce the template's glyph-ID sequences on conjunct-heavy probes for every font, and a full-closure audit (80,915 glyphs, 54,812 anchors) quantifies every metric delta. Style is selected by natural language through LIPIKA, a retrieval index over ~650 open-license families that grounds a prompt in a concrete donor face; a reference-conditioned latent diffusion model redraws each template glyph in the donor's style; and a content gate, harmonization pass, and shaped-cluster verify-and-repair loop revert any failing glyph to its template outline. One warm-start graft recipe adds a script in ~20–48k steps; per-script routing sidesteps the cross-script dilution grafting inflicts.

We evaluate against no-learning baselines only. On diffusion-training-family-held-out SSIM gates, unrestyled template copy beats 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 (median gap closure 0.05; one OOD family, Alkatra, reaches 0.85–0.94 while seven others barely move). A learned baseline, an independent style metric, and a human study are outside this report's scope. Our contributions are the formulation, the layout-reusing pipeline and its audit, a frozen nine-script ID/OOD benchmark, and a negative-results catalogue: six unsuccessful conditioning/objective levers, a forensic study of train-time objective contamination, and a data-hull analysis of when reference-guided restyling fails.

1 Introduction

More than 800 million people read Brahmic scripts (India's 2011 Census alone records over a billion mother-tongue speakers of scheduled languages written in them [10]), yet their typographic ecosystems are a fraction of Latin's: Google Fonts hosts over 1,800 Latin families but, for a script like Odia, six families in total [1]. The gap is structural. A text-ready Indic font is not a drawing exercise but a shaping-engine contract: hundreds to thousands of conjuncts, half forms, and matra variants reachable through OpenType substitution must all be present and mutually consistent, which multiplies the cost of every new design. Generative models are the obvious lever, but the prevailing formulation — generate glyph images — stops short of the artifact anyone can use. An image of type is not a font.

We present SRIJIKA, a system that takes a natural-language style description and emits an installable TTF for any of nine Brahmic scripts, retaining the template's substitution closure and reusing its positioning structure. Our central design decision is to never generate a font from scratch: we restyle the complete glyph closure of a professionally-engineered open-license template font, tile by tile, with a reference-conditioned latent diffusion model, then rebuild outlines in place so the template's GSUB machinery is reused unchanged and its GPOS structure is reused subject to documented metric and anchor-coordinate transformations. Finite HarfBuzz and CoreText probes verify glyph-ID parity with the template; visual positioning quality and exhaustive GPOS behavior remain outside the present audit (Sec. 7). Style comes from LIPIKA, a retrieval index over ~650 open-license families whose embeddings ground open-vocabulary prompts in concrete reference glyphs. A defect-tolerant serving pipeline — content gate with a retry ladder, style harmonization, coherence capping, and shaped-cluster verification with per-glyph repair — converts a model that is usually right into a font in which every glyph either passes verification or reverts to the template outline.

Our contributions:

  1. Template-layout-reusing restyling: the template's cmap and GSUB substitution closure are retained unchanged; GPOS structure is reused subject to documented metric and anchor-coordinate transformations (Sec. 4). Layout is reused, not learned, so restyling quality and layout logic decouple.

  2. Retrieval-grounded styling (LIPIKA): per-(family, script) CLIP-style embeddings turn free-text prompts into reference tiles, sidestepping the absence of Indic style-attribute datasets (Sec. 4).

  3. A graft recipe that scales one backbone to nine scripts: resume from a shipped checkpoint with uniform pack concatenation, plus a dilution observation — under sequential grafting, previously shipped scripts degrade relative to the donor, and re-weighted sampling relocates rather than removes the loss (zero-sum in our runs). Per-script routing, serving each script from the checkpoint that first passed its gate, is our engineering response: it avoids shipped-script regressions trivially, because shipped checkpoints are never updated — an operational choice, not a finding (Sec. 5).

  4. An evaluation protocol for generated Indic fonts: family-held-out zero-shot gates with genre-matched splits, script bars, content probes, a shaped-cluster critic, and a frozen two-strata (ID/style-OOD) benchmark with a diffusion-training-disjoint controlled checkpoint (benchmark families remain present in LIPIKA's encoder and retrieval training corpus), whose headline finding is that OOD style transfer is strongly family-specific (Sec. 6, Table 5).

  5. A negative-results catalogue: six tested-and-unsuccessful lever families, a forensic study of train-time objective contamination, and a data-hull boundary — failure modes characterized under our architecture, critic, and training regime, which we expect (but do not show) to recur in similar reference-guided glyph generators (Sec. 8).