arXiv:2610.21364cs.CVOct 2026

Manuscript Offprint

arXiv:2610.21364

CoDeFont: One-Shot Font Generation via Multi-Scale Factor-Specific Representation Learning

Rejoy Chakraborty, Prasun Roy, Saumik Bhattacharya, Umapada Pal

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

One-shot Font Generation (OFG) aims to synthesize a target glyph by transferring the stylistic characteristics of a single reference glyph while preserving the structure of the target character. However, accurately capturing font style from a single reference image remains challenging due to the limited stylistic information available in a single glyph, and this challenge is further amplified for complex scripts. We propose CoDeFont, a script-agnostic OFG framework that addresses this challenge through multi-level style-content factorization and progressive style-content reconciliation. CoDeFont independently aggregates complementary style and structural information across multiple spatial levels to obtain factor-specific representations, while a contrastive objective explicitly encourages separation between style and content embeddings. During reconstruction, the disentangled representations are progressively injected through multi-level style conditioning, enabling stylistic information to be incorporated at different decoding resolutions while preserving the underlying glyph structure. We evaluate CoDeFont on structurally distinct Bengali and Latin scripts across seen and unseen font styles. Extensive quantitative and qualitative analyses demonstrate consistent improvements over existing state-of-the-art methods, highlighting the effectiveness of the proposed framework for OFG across diverse writing systems.

1. Introduction

In the domain of Image-to-Image (I2I) translation, Few-shot Font Generation (FFG) is an active research problem that aims to synthesize glyphs in a target font style using few reference glyphs. One-shot Font Generation (OFG) is a subdomain of FFG where we fix the set of style references to one. TrueType Font (TTF) files are widely used for digital font rendering, as they encode the geometric structure and stylistic characteristics of a font style. Given a small set of reference glyphs, estimating the underlying TTF is highly challenging because the available references do not provide sufficient information to infer all font-specific properties and glyph outlines. To overcome the issue, FFG methods focus on directly generating the target glyph image.

In the early stages of FFG methods, researchers primarily adopted image-to-image (I2I) style transfer mechanisms to synthesize glyphs in a target font style [9, 20]. While these approaches demonstrated the feasibility of font style transfer, they often struggled to preserve fine-grained stylistic details, spatial relationships, and structural consistency across generated glyphs. To address these limitations, structure-aware methods [27] were proposed, where the encoder learns spatial correspondences between reference and target glyphs. Recent studies [34] use stroke decomposition to represent glyphs with predefined components, but such representations are often script-dependent. Alternatively, other approaches [16, 27] disentangle style and structural information by learning separate latent representations.

Despite recent progress, existing approaches largely treat style-content disentanglement, multi-scale representation, and style injection as separate components, lacking a unified mechanism for multi-level factorization and progressive fusion during reconstruction. Further, there are limited methods [7] available focusing on structurally complex scripts such as Indic scripts, which feature intricate strokes and multi-zone layouts. To address these, we propose CoDeFont (Contrastively Disentangled Font), a script-agnostic OFG framework that synthesizes high-fidelity glyphs from a single style reference image. Unlike existing approaches that primarily aggregate or propagate representations through a shared reconstruction pathway, CoDeFont explicitly factorizes style using SQAH module and content across multiple representation levels using CPH module, and progressively fuses the disentangled style information with content during decoding through

MASFM module. This design enables effective preservation of font-specific stylistic characteristics while maintaining the structural integrity of target glyphs.

References (36)