Automatic Generation of Typographic Font from a Small Font Subset

Tomo Miyazaki, Tatsunori Tsuchiya, Yoshihiro Sugaya, Shinichiro Omachi, Masakazu Iwamura, Seiichi Uchida, Koichi KisearXiv 2017 · DOI

TL;DR

This paper introduces an automated framework that can generate a complete, high-quality Japanese typographic font from a subset of just 15 sample character images. By combining a massive standard skeleton dataset with a novel stroke extraction and deployment pipeline, the method drastically reduces the multi-year manual labor usually required to design thousands of complex Kanji characters.

What Problem Does This Paper Address?

Designing fonts for logographic languages like Japanese, Chinese, or Korean is a monumental task. While an English font requires designing only a few dozen characters, a standard Japanese font requires at least 1,006 Kanji characters for daily use, and full sets often exceed 6,000. Consequently, creating a new font takes professional typographers years of intense manual effort.

Existing automated font generation methods fall short: parameter-based methods require tedious manual tuning for every single character, while font-blending methods struggle to create truly unique or highly stylized variations. The authors address this bottleneck by proposing a system that can take a tiny handful of stylized character images (e.g., from a photograph or a brief sample) and automatically extrapolate the remaining thousands of characters while perfectly preserving the unique artistic style.

Methods

The proposed generation framework consists of three main phases:

  1. Stroke Extraction: The user provides a small set of sample character images. Using a graphical user interface (GUI), standard character skeletons are roughly aligned to these samples. An Adaptive Active Contour Model (AACM) then optimizes a spline curve to precisely trace the boundaries of individual strokes, even when they overlap or feature complex decorations. Any strokes damaged during extraction are automatically repaired using cubic Bézier curves.
  2. Skeleton Modification: To capture the global style of the target font (such as its slant, aspect ratio, and stroke placement), the system calculates size ($T_{sz}$) and affine ($T_{aff}$) transformation matrices from the sample characters. These matrices are then used to warp standard skeletons from a reference dataset into the style of the target font.
  3. Stroke Deployment: An energy minimization function evaluates which of the extracted sample strokes best fits each segment of the newly transformed target skeletons. The chosen strokes are then automatically deployed and stitched together to construct the missing characters.

Additionally, instead of picking random characters as inputs, the authors use a Genetic Algorithm to automatically select the optimal 15-character sample subset that maximizes stroke and structural diversity, ensuring the best possible generation quality.

Fig. 1. Overview of the proposed method.

Datasets

  • GlyphWiki: A massive collaborative database containing over 210,000 characters. The authors utilized its KAGE format data to extract the base character skeletons used in their dataset.
  • Kyoiku-kanji: A standardized set of 1,006 Kanji characters taught in Japanese elementary schools, used here as the validation set for the sample selection algorithm.
  • Evaluation Fonts: The method was primarily evaluated on 5 highly distinctive target fonts (Ibara, Gcomic, Onryo, Tsunoda, and Zinpen) and later scaled to a broader dataset of 42 diverse fonts including standard system fonts, calligraphy, and various handwriting styles.

Key Insights and Ideas

  • Strokes over Patches: Rather than breaking characters down into arbitrary pixel patches (which destroys stylistic continuity), this method extracts and manipulates semantic, human-like strokes. This allows it to seamlessly replicate highly decorative and irregular font styles.
  • The Power of 15 Samples: By framing sample selection as an optimization problem solved via a genetic algorithm, the authors proved that you don't need a massive training set to learn a font style. Just 15 carefully selected characters contain enough elemental stroke variety to generate thousands of others.
  • Decoupling Style from Topology: By transforming a single standard skeleton dataset to fit the target font's geometry, the system eliminates the need to build custom skeleton databases for every new font family, making the framework highly scalable.

Key Results

The authors successfully generated 2,965 JIS Level-1 Kanji characters for 47 different fonts.

  • Quantitative Evaluation: Using the Chamfer distance metric to measure edge similarity against original handmade characters, the proposed method consistently outperformed the state-of-the-art patch-transform baseline across all test fonts.
  • Character Recognition Accuracy: To test legibility, the generated characters were used to train a text recognizer. The proposed method achieved significantly higher recognition rates than the baseline (e.g., 77.4% vs 61.5% on the Gcomic font, and 48.3% vs 29.0% on the highly slanted Ibara font).
  • Subjective Evaluation: In a Mean Opinion Score (MOS) test with 14 human participants, the generated characters scored remarkably close to the original handmade fonts (averaging ~4.4/5.0), proving they are virtually indistinguishable from human designs at a glance.

Limitations and Future Work

  • Human-in-the-Loop Alignment: The stroke extraction phase still requires brief human intervention to adjust the reference skeletons to the sample images via a GUI. While this only takes a few minutes for 15 characters, it prevents the pipeline from being 100% hands-off.
  • Extreme Topological Deviations: If a target font features abstract or highly distorted layouts that deviate radically from standard GlyphWiki structures, the skeleton transformation matrix might struggle to align correctly.

In future work, the authors plan to focus on fully automating the initial skeleton adjustment process and testing the system on an even wider variety of extreme font variations.

Summary updated

Abstract

This paper addresses the automatic generation of a typographic font from a subset of characters. Specifically, we use a subset of a typographic font to extrapolate additional characters. Consequently, we obtain a complete font containing a number of characters sufficient for daily use. The automated generation of Japanese fonts is in high demand because a Japanese font requires over 1,000 characters. Unfortunately, professional typographers create most fonts, resulting in significant financial and time investments for font generation. The proposed method can be a great aid for font creation because designers do not need to create the majority of the characters for a new font. The proposed method uses strokes from given samples for font generation. The strokes, from which we construct characters, are extracted by exploiting a character skeleton dataset. This study makes three main contributions: a novel method of extracting strokes from characters, which is applicable to both standard fonts and their variations; a fully automated approach for constructing characters; and a selection method for sample characters. We demonstrate our proposed method by generating 2,965 characters in 47 fonts. Objective and subjective evaluations verify that the generated characters are similar to handmade characters.
BibTeX
@misc{miyazaki2017automatic,
  author = {Tomo Miyazaki and Tatsunori Tsuchiya and Yoshihiro Sugaya and Shinichiro Omachi and Masakazu Iwamura and Seiichi Uchida and Koichi Kise},
  title = {{Automatic Generation of Typographic Font from a Small Font Subset}},
  year = {2017},
  eprint = {1701.05703},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.05703},
}

Loading related content...

Figure