DA-Font: Few-Shot Font Generation via Dual-Attention Hybrid Integration

Weiran Chen, Guiqian Zhu, Ying Li, Yi Ji, Chunping Liu
9/20/2025
cs.CV

Official code: wrchen2001/DA-Font (58 stars, Apache-2.0, last commit 2026-03-18).

Abstract

Few-shot font generation aims to create new fonts with a limited number of glyph references. It can be used to significantly reduce the labor cost of manual font design. However, due to the variety and complexity of font styles, the results generated by existing methods often suffer from visible defects, such as stroke errors, artifacts and blurriness. To address these issues, we propose DA-Font, a novel framework which integrates a Dual-Attention Hybrid Module (DAHM). Specifically, we introduce two synergistic attention blocks: the component attention block that leverages component information from content images to guide the style transfer process, and the relation attention block that further refines spatial relationships through interacting the content feature with both original and stylized component-wise representations. These two blocks collaborate to preserve accurate character shapes and stylistic textures. Moreover, we also design a corner consistency loss and an elastic mesh feature loss to better improve geometric alignment. Extensive experiments show that our DA-Font outperforms the state-of-the-art methods across diverse font styles and characters, demonstrating its effectiveness in enhancing structural integrity and local fidelity. The source code can be found at \href{https://github.com/wrchen2001/DA-Font}{\textit{https://github.com/wrchen2001/DA-Font}}.

View on arXivView PDF

Code Implementations(1)

wrchen2001/DA-FontOfficial100%
Apache-2.0

[ACM MM 2025] DA-Font: Few-Shot Font Generation via Dual-Attention Hybrid Integration

582Shell, PythonJul 6, 20257 months agoApache-2.0

Similar Papers

Cite this paper

@article{chen2025dafont,
  title  = {DA-Font: Few-Shot Font Generation via Dual-Attention Hybrid Integration},
  author = {Weiran Chen and Guiqian Zhu and Ying Li and Yi Ji and Chunping Liu},
  year   = {2025},
  eprint = {2509.16632},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.16632v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.16632.svg)](https://codeofpaper.com/paper/2509.16632)

Discussion