FlowVecFont: Scalable Vector Font Generation via Latent Flow Matching
Authors: Takumu Fujioka, Gouhei Tanaka
Organizations: Department of Computer Science, Graduate School of Engineering, Nagoya Institute of Technology, Nagoya, 466-8555, Japan · International Research Center for Neurointelligence, The University of Tokyo, Tokyo, 113-0033, Japan
Fonts are natively represented as vector outlines. Many existing studies on vector font generation have relied on specialized generation or refinement mechanisms, bitmap representations, or externally pretrained models to address the challenges of learning vector representations. These approaches often increase system complexity, incur additional computational and implementation costs, and introduce dependencies on external resources. We show that scaling a simple model enables high-quality pure vector font generation without external pretraining. We propose FlowVecFont, a scalable model for vector font generation based on latent flow matching and trained solely on vector outlines. A Transformer-based variational autoencoder maps glyph sequences into fixed-length continuous latent tokens, enabling standard conditional flow matching for vector glyph generation. The model supports conditioning on class labels or reference glyphs, with the latter enabling generalization to unseen characters and fonts. Experiments on 5M glyphs collected across Google Fonts, including non-Latin characters, show that generation quality improves with model scale across conditioning strategies. In a comparison on Latin glyphs, the 800M-parameter FlowVecFont outperforms DeepVecFont-v2 and DesigNet and achieves quality competitive with the pretrained 27B-parameter VecGlypher. We also provide TorchFont, a machine learning library for vector fonts.
Figures & tables
Command
Arguments
Description
MoveTo
x,y
Start a new subpath at (x,y) without drawing.
LineTo
x,y
Draw a straight line from the current point to (x,y) .
QuadTo
cx,cyx,y
Draw a quadratic Bézier curve from the current point to (x,y) with control point (cx,cy) . Used in TrueType ( glyf ) outlines.
CurveTo
c1x,c1yc2x,c2yx,y
Draw a cubic Bézier curve from the current point to (x,y) with control points (c1x,c1y) and (c2x,c2y) . Used in CFF/CFF2 outlines.
Close
∅
Close the current subpath with a straight line from the current point to its starting point.
Table 1: Drawing commands used to represent vector outlines.
Method
Approach
Font support
Vector output
Bitmap-free
Pretraining-free
DeepSVG (2020) [ 4 ]
VAE
Latin
Aoki & Aizawa (2022) [ 1 ]
Encoder–decoder
Chinese
DeepVecFont-v2 (2023) [ 24 ]
VAE
Latin, Chinese
VGG-19 loss [ 20 ]
DualVector (2023) [ 15 ]
VAE
Latin
LPIPS [ 33 ]
DesigNet (2026) [ 7 ]
VAE
Latin, Chinese
SVGFusion (2024) [ 27 ]
Latent diffusion
DINOv2 [ 17 ]
Table 2: Comparison of vector graphics and font generation methods. Approach denotes the model family: variational autoencoder (VAE) or encoder–decoder, diffusion or flow matching, and LLM. Font support indicates the number of distinct characters across training and evaluation: fewer than 1K, 1K to 10K, and 10K or more. Bitmap-free means no bitmap input or supervision, excluding evaluation. Pretraining-free means no external pretrained weights for training or generation, including loss networks but excluding evaluation-only metrics. Names beside crosses identify representative pretrained components, not an exhaustive list.
Figure 1: FlowVecFont architectures. 1(a) The VAE encodes and reconstructs vector outlines. 1(b) – 1(d) Latent flow matching generates glyph representations using different conditioning strategies.
Figure 2: Drawing command embedding. Command types are one-hot encoded and embedded, while coordinates are embedded through a learnable linear layer. The two embeddings are added to form a command token.
Strategy
Target
Style refs.
Char. refs.
Samples
CLS
SFSC
—
—
44.5K
STR
SFSC
Train
—
44.5K
STR
UFSC
UFSC
—
211.8K
REF
SFSC
Train
Train
43.9K
REF
SFUC
Train
SFUC
219.5K
REF
UFSC
UFSC
Train
209.6K
Table 3: Evaluation splits, reference pools, and sample counts by conditioning strategy. Train denotes the SFSC training subset.
Figure 3: VAE reconstructions and generated glyphs on SFSC. Ground-truth outlines (blue) are overlaid with reconstructions or generated glyphs (orange). Columns share the same targets; samples are not cherry-picked.
Model
Size
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
FVF-VAE
14M
0.0029
0.0045
0.09
0.00
FVF-CLS/S
90M
0.0194
0.1135
23.11
2.12
FVF-CLS/B
230M
0.0157
0.0853
11.86
1.17
FVF-CLS/L
586M
0.0136
0.0685
6.51
0.74
FVF-CLS/XL
817M
0.0131
0.0657
5.86
0.55
FVF-STR/S
88M
0.0279
0.1554
35.09
3.11
Table 4: VAE reconstruction and generation results on SFSC. Size denotes the total parameter count, including the shared frozen VAE. Fail. denotes the evaluation failure rate (%).
Figure 4: FID on SFSC versus estimated flow-model training compute. Each curve tracks a model across checkpoints saved every 100K training steps.
Figure 5: Glyphs generated by FVF-REF/B across the four test splits. Ground truth is shown in blue and generated glyphs in orange. Samples are not cherry-picked.
Split
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
SFSC
0.0268
0.1414
26.87
2.67
SFUC
0.0264
0.1428
28.22
2.66
UFSC
0.0273
0.1473
32.08
3.04
UFUC
0.0268
0.1485
35.10
3.39
Table 5: FVF-REF/B results across the four test splits.
Figure 6: Qualitative comparison with existing methods on UFSC. Ground truth is shown in blue and generated glyphs in orange. Columns share the same targets; samples are not cherry-picked.
Method
Size
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
DVF-v2
121M
0.0211
0.1627
24.99
0.41
DesigNet
14M
0.0269
0.2146
50.03
0.63
VecGlypher
27B
0.0129
0.0849
3.27
0.00
FVF-STR/XL
813M
0.0134
0.0917
4.86
0.00
Table 6: Comparison with existing methods on 3,170 UFSC glyphs from 74 Google Fonts faces. Quality metrics are computed after normalizing each glyph using its own bounding box.
Figure S1 : Google Fonts character coverage in the Basic Multilingual Plane (BMP). Colored bins indicate observed pairs of font faces and codepoints, with darker blue denoting more pairs per bin.
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
Figure S2 : Original outline sequence lengths, including the End token, with cumulative proportions on the right axis. The dashed line marks L=256 , which covers 95.9% of all glyphs.
Figure S3 : Preprocessing pipeline for conditional REF training. Blocks span the groups receiving each operation.
Figure S4 : Training and validation losses for the L1 and MSE VAE variants. Faint blue lines show raw training losses before EMA, and solid blue lines show a trailing moving average over 1K training steps. Orange lines show validation losses computed every 10K steps using the EMA weights, without smoothing. Absolute loss values are not directly comparable because the objectives and their weights differ.
Figure S5: Large-coordinate training glyphs found near loss spikes. The letter A provides a scale reference.
Loss
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
L1
0.0029
0.0045
0.09
0.00
MSE
0.0039
0.0093
0.30
0.01
Appendix
Table S1 : Test reconstruction quality on SFSC after 400K VAE training steps with L1 or MSE coordinate loss. Fail. denotes the failure rate (%).
Augmentation
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
None
0.0028
0.0039
0.05
0.023
w/o axis sampling
0.0031
0.0053
0.11
0.002
Full
0.0029
0.0045
0.09
0.000
Appendix
Table S2 : VAE data augmentation on SFSC after 400K training steps. Fail. denotes the failure rate (%).
Model
K
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
FVF-VAE
16
0.0041
0.0166
1.38
0.121
32
0.0029
0.0045
0.09
0.000
64
0.0025
0.0030
0.04
0.002
FVF-CLS/B
16
0.0191
0.1168
26.79
2.21
32
0.0183
0.1018
16.40
1.71
64
0.0171
0.0861
7.22
0.44
Appendix
Table S3 : Effect of the number of latent tokens on FVF-VAE reconstruction and FVF-CLS/B generation on SFSC. In this ablation, FVF-CLS/B is trained for 400K steps instead of the 1M steps used in the main experiments. Fail. denotes the failure rate (%).
CFG scale
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
1.0
0.0207
0.1146
18.26
1.26
1.5
0.0167
0.0919
13.07
1.16
2.0
0.0159
0.0869
12.02
1.14
3.0
0.0157
0.0853
11.87
1.21
4.0
0.0158
0.0857
12.17
1.20
5.0
0.0159
0.0864
12.51
1.20
Appendix
Table S4 : Guidance-strength ablation for the 1M-step CLS/B checkpoint on SFSC with 32 Euler steps. Fail. denotes the failure rate (%).
Euler steps
CD ↓
LPIPS ↓
FID ↓
Fail. ↓
8
0.0163
0.0933
20.63
1.79
16
0.0157
0.0859
13.01
1.33
32
0.0157
0.0853
11.87
1.21
64
0.0157
0.0856
12.05
1.18
Appendix
Table S5 : Euler-step ablation for the 1M-step CLS/B checkpoint on SFSC. All variants use CFG scale 3.0. Fail. denotes the failure rate (%). Best values before rounding are in bold.
Model
Size
Split
CD ↓
L1 ↓
SSIM ↑
LPIPS ↓
FID ↓
Fail. ↓
FVF-VAE
14M
SFSC
0.0029
0.0031
0.9947
0.0045
0.09
0.00
SFUC
0.0029
0.0031
0.9947
0.0045
0.07
0.00
UFSC
0.0031
0.0034
0.9945
0.0047
0.06
0.00
UFUC
0.0031
0.0034
0.9945
0.0047
0.16
0.00
FVF-CLS/S
90M
SFSC
0.0194
0.0539
0.8422
0.1135
23.11
2.12
FVF-CLS/B
230M
SFSC
0.0157
0.0431
0.8677
0.0853
11.86
1.17
Appendix
Table S6 : Full test results for VAE reconstruction and font generation. CD denotes Chamfer distance. Size denotes the total parameter count, including the shared frozen VAE. Fail. denotes the evaluation failure rate (%). Quality metrics are computed on successfully evaluated glyphs.
Figure S6 : Chamfer distance, L1, SSIM, LPIPS, FID, and evaluation failure rate on SFSC versus training compute. Each point corresponds to a checkpoint saved every 100K steps.
Figure S7: Qualitative results on SFSC. Ground-truth glyphs (blue) are overlaid with VAE reconstructions or generated glyphs (orange). Each column shows the same target glyph, labeled with its Unicode codepoint, and samples are not cherry-picked.
Figure S8: Qualitative results on SFUC. Ground-truth glyphs (blue) are overlaid with VAE reconstructions or generated glyphs (orange). Each column shows the same target glyph, labeled with its Unicode codepoint, and samples are not cherry-picked.
Figure S9: Qualitative results on UFSC. Ground-truth glyphs (blue) are overlaid with VAE reconstructions or generated glyphs (orange). Each column shows the same target glyph, labeled with its Unicode codepoint, and samples are not cherry-picked.
Figure S10: Qualitative results on UFUC. Ground-truth glyphs (blue) are overlaid with VAE reconstructions or generated glyphs (orange). Each column shows the same target glyph, labeled with its Unicode codepoint, and samples are not cherry-picked.
Method
Size
CD ↓
L1 ↓
SSIM ↑
LPIPS ↓
FID ↓
Fail. ↓
DVF-v2
121M
0.0211
0.0754
0.7793
0.1627
24.99
0.41
DesigNet
14M
0.0269
0.0989
0.7448
0.2146
50.03
0.63
VecGlypher
27B
0.0129
0.0464
0.8502
0.0849
3.27
0.00
FVF-STR/XL
813M
0.0134
0.0482
0.8353
0.0917
4.86
0.00
Appendix
Table S7 : Full comparison results on 3,170 UFSC glyphs from 74 Google Fonts faces. CD denotes Chamfer distance. Quality metrics are computed after normalizing each glyph using its own bounding box. Size denotes the parameter count, including frozen components used for inference. Fail. denotes the evaluation failure rate (%). Quality metrics exclude failed samples. FVF-STR/XL is our proposed method. Best results are in bold.
Figure S11: Full qualitative comparison with existing methods on UFSC. FVF-STR/XL is our proposed method. Ground-truth glyphs (blue) are overlaid with generated glyphs (orange). Each column shows the same target glyph, labeled with its Unicode codepoint. All 16 saved examples are shown in ascending font-ID and codepoint order.