Learning to Kern: Set-wise Estimation of Optimal Letter Space
Not on the map. Why?
Abstract (arXiv)
Kerning is the task of setting appropriate horizontal spaces for all possible letter pairs of a certain font. One of the difficulties of kerning is that the appropriate space differs for each letter pair. Therefore, for a total of 52 capital and small letters, we need to adjust 52 × 52 = 2704 different spaces. Another difficulty is that there is neither a general procedure nor criterion for automatic kerning; therefore, kerning is still done manually or with heuristics. In this paper, we tackle kerning by proposing two machine-learning models, called pairwise and set-wise models. The former is a simple deep neural network that estimates the letter space for two given letter images. In contrast, the latter is a transformer-based model that estimates the letter spaces for three or more given letter images. For example, the set-wise model simultaneously estimates 2704 spaces for 52 letter images for a certain font. Among the two models, the set-wise model is not only more efficient but also more accurate because its internal self-attention mechanism allows for more consistent kerning for all letters. Experimental results on about 2500 Google fonts and their quantitative and qualitative analyses show that the set-wise model has an average estimation error of only about 5.3 pixels when the average letter space of all fonts and letter pairs is about 115 pixels.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 8 of its 20 references that are in the map. First posted on arXiv 22 Feb 2024.
Builds on
8 of 20 references.
References · 8
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2023LayoutDM: Discrete Diffusion Model for Controllable Layout Generationcited by 141
- 2021Variational Transformer Networks for Layout Generationcited by 88
- 2021BLT: Bidirectional Layout Transformer for Controllable Layout Generationcited by 69
- 2020Attribute-conditioned Layout GAN for Automatic Graphic Designcited by 67
- 2023LayoutDM: Transformer-based Diffusion Model for Layout Generationcited by 57
- 2023Diverse Multimedia Layout Generation with Multi Choice Learningcited by 8
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026BoundInk: Boundary-Aware Online Handwriting Generationcited by 0
- 2026BoundInk: Boundary-Aware Online Handwriting Generation2 Apr 2026