Awesome Typography: Statistics-Based Text Effects Transfer

Shuai Yang, Jiaying Liu, Zhouhui Lian, Zongming Guo

Abstract

Researchers from Peking University have introduced a statistics-based framework for the automatic transfer of complex artistic text effects—such as burning flames, neon glows, and denim textures—from a single source example to target text. By exploiting the spatial correlation between text effects and the underlying character skeleton, the proposed method generates high-quality, multi-scale typography that surpasses the performance of traditional style transfer and deep learning-based approaches.

Introduction

Creating "awesome typography" involves rendering text with sophisticated special effects, a task traditionally requiring professional designers to manually manipulate textures, transparency, and sub-effects. Automated methods often struggle due to the extreme diversity of effects, the complex composition of multiple sub-effects (e.g., fabric base vs. frayed edges in denim), and the lack of semantic guidance from plain text images.

Methodology

The core innovation lies in the observation that text effects are spatially regular relative to the character's shape.

Statistics Estimation

The algorithm first calculates a normalized distance-to-skeleton for every pixel, measuring its distance from the character's central backbone. It then identifies the optimal scale (patch size) for different regions—small patches for fine details and larger patches for broad glows. A statistical model is constructed to link these distances to specific patch scales and colors from the source image.

The Transfer Algorithm

Building on the PatchMatch framework, the transfer process utilizes a three-part objective function:

  1. Appearance Term: Facilitates multi-scale texture transfer guided by the statistical model.
  2. Distribution Term: Ensures that source effects (e.g., embers) are placed at corresponding distances from the target skeleton as they were in the source.
  3. Psycho-Visual Term: Prevents repetitive "wallpaper effects" by penalizing the over-use of specific source patches, ensuring natural visual variety.
Example of the 'flame' effect transferred to a target character.

Key Insights

  • Skeleton-Based Guidance: Using the character's structural backbone allows the algorithm to distinguish between internal textures and external glows.
  • Adaptive Scaling: By varying patch scales based on local statistics, the method preserves both the coarse character shape and intricate textural details.
  • Non-Stationary Modeling: Unlike traditional synthesis, this approach explicitly models textures that change appearance based on their spatial position.
The 'denim fabric' effect, showing complex sub-effects like stitching and frayed edges.

Results and Robustness

The method demonstrates significant qualitative superiority over existing techniques like Neural Doodles, which often produce blurry results or lose character structure. It is highly robust, successfully transferring effects across different languages (e.g., Chinese to English) and diverse font styles (e.g., serif to handwriting) without requiring manual parameter tuning. The efficiency of the coarse-to-fine matching strategy makes it practical for generating large font sets, as demonstrated by a library of 775 Chinese characters in a single "flame" style.

Conclusion

This statistics-based approach provides a powerful tool for automating high-end typography. Future work aims to improve semantic awareness (e.g., distinguishing stroke directions) and integrate stylized text more naturally into complex photographic backgrounds.

Reference: Yang, S., Liu, J., Lian, Z., & Guo, Z. (2017). Awesome Typography: Statistics-Based Text Effects Transfer. CVPR.

Summary updated

BibTeX
@inproceedings{yang2017awesome,
  author = {Shuai Yang and Jiaying Liu and Zhouhui Lian and Zongming Guo},
  title = {{Awesome Typography: Statistics-Based Text Effects Transfer}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.308},
}
Figure