Abstract
Generating new fonts is a time-consuming and labor-intensive task, especially in a language with a huge amount of characters like Chinese. Various deep learning models have demonstrated the ability to efficiently generate new fonts with a few reference characters of that style, but few models support cross-lingual font generation. This paper presents GAS-NeXt, a novel few-shot cross-lingual font generator based on AGIS-Net and Font Translator GAN, and improve the performance metrics such as Fréchet Inception Distance (FID), Structural Similarity Index Measure(SSIM), and Pixel-level Accuracy (pix-acc). Our approaches include replacing the original encoder and decoder with the idea of layer attention and context-aware attention from Font Translator GAN, while utilizing the shape, texture, and local discriminators of AGIS-Net. In our experiment on English-to-Chinese font translation, we observed better results in fonts with distinct local features than conventional Chinese fonts compared to results obtained from Font Translator GAN. We also validate our method on multiple languages and datasets.
Introduction
The manual creation of a new font is a grueling process. While designing a 26-letter Latin alphabet is manageable, designing a Chinese font—which can require upwards of 6,000 characters—is a monumental task. Researchers have developed "few-shot" models that can learn a style from a handful of examples, but cross-lingual font generation remains a major hurdle.
Existing models often struggle to transfer the "vibe" of an English serif font to complex Chinese characters without losing fine-grained details like sharp corners or specific brush stroke textures. GAS-NeXt addresses this "blank page" problem by treating font generation as an image-to-image translation task where style and content are disentangled, allowing for high-fidelity stylistic transfer across structurally diverse languages.
Methodology
GAS-NeXt is a hybrid model that merges technical innovations from AGIS-Net and Font Translator GAN (FTransGAN). The architecture is built around two primary components: a Dual-Attention Generator and a Triple Discriminator system.
Dual-Attention Generator
The generator utilizes Context-Aware Attention to capture local stylistic features and Layer Attention to select the most important global features. This dual-attention mechanism makes the generator significantly more flexible when dealing with arbitrary, previously unseen styles, allowing it to understand which parts of a reference character (like the curve of an 'S') should be applied to a target character (like a Chinese radical).
Triple Discriminator System
To ensure both global structure and local texture are preserved, GAS-NeXt employs three distinct discriminators:
- Shape Discriminator: Ensures the character's fundamental structure is correct.
- Texture Discriminator: Focuses on the overall stylistic "feel" and surface detail.
- Local Discriminator: This component analyzes small, cropped, and blurred patches of the character. By forcing the model to get tiny details—like the sharpness of a stroke's edge—exactly right, it prevents the "blurring" effect common in standard GANs.
Experiments and Results
The researchers validated GAS-NeXt using several established benchmarks, including the Gao et al. dataset for professional fonts, CASIA for handwritten Chinese, and the Li et al. dataset for Latin-to-Chinese style transfer.
Quantitative Performance
In "Unknown Style" tests (few-shot scenarios), the model maintained competitive stability with a Structural Similarity Index Measure (SSIM) of ~0.35 and a Fréchet Inception Distance (FID) of ~104. These metrics indicate that the model generalizes well to fonts outside its training set.
Qualitative Visual Fidelity
In English-to-Chinese tests, GAS-NeXt captured sharp edges and unique local features that baseline models like FTransGAN missed. Side-by-side comparisons demonstrate that GAS-NeXt's outputs are significantly closer to the ground truth, particularly for fonts with non-traditional or highly stylized strokes.
Conclusion and Future Work
GAS-NeXt successfully bridges the gap in cross-lingual font generation by prioritizing local stylistic fidelity through attention mechanisms and specialized discriminators. While the model excels at monochrome style transfer, future work will address the challenges of multi-channel color processing to avoid "ghosting" effects. Additionally, incorporating radical decomposition knowledge could further improve the structural accuracy of complex Chinese characters.
Summary updated