Transformer-Based Vector Font Classification Using Different Font Formats: TrueType versus PostScript

Takumu Fujioka, Gouhei Tanaka
2/1/2025
cs.CV

No official code found. Best implementation: fjktkm/truetype-vs-postscript-transformer (1 star, MIT, last commit 2025-01-31).

Abstract

Modern fonts adopt vector-based formats, which ensure scalability without loss of quality. While many deep learning studies on fonts focus on bitmap formats, deep learning for vector fonts remains underexplored. In studies involving deep learning for vector fonts, the choice of font representation has often been made conventionally. However, the font representation format is one of the factors that can influence the computational performance of machine learning models in font-related tasks. Here we show that font representations based on PostScript outlines outperform those based on TrueType outlines in Transformer-based vector font classification. TrueType outlines represent character shapes as sequences of points and their associated flags, whereas PostScript outlines represent them as sequences of commands. In previous research, PostScript outlines have been predominantly used when fonts are treated as part of vector graphics, while TrueType outlines are mainly employed when focusing on fonts alone. Whether to use PostScript or TrueType outlines has been mainly determined by file format specifications and precedent settings in previous studies, rather than performance considerations. To date, few studies have compared which outline format provides better embedding representations. Our findings suggest that information aggregation is crucial in Transformer-based deep learning for vector graphics, as in tokenization in language models and patch division in bitmap-based image recognition models. This insight provides valuable guidance for selecting outline formats in future research on vector graphics.

View on arXivView PDF

Code Implementations(1)

MIT

Transformer-Based Vector Font Classification Using Different Font Formats: TrueType versus PostScript

11Shell, PythonJan 30, 20251 years agoMIT

Similar Papers

Cite this paper

@article{fujioka2025transformerbased,
  title  = {Transformer-Based Vector Font Classification Using Different Font Formats: TrueType versus PostScript},
  author = {Takumu Fujioka and Gouhei Tanaka},
  year   = {2025},
  eprint = {2502.00250},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.00250v1}
}

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/2502.00250.svg)](https://codeofpaper.com/paper/2502.00250)

Discussion