ELECTRONIC PUBLISHING, VOL. 8(4), 281–294(DECEMBER 1995)
Random fonts for the simulation of handwriting
LUC DEVROYE AND MICHAEL McDOUGALL
Schoolof Computer Science McGill University Montreal, CanadaH3A 2A7
SUMMARYWepresentseveralmethodsforcreatingarandomprintedhandwritingfontbaseduponasmallsample from a person’s own hand. The first method uses random interpolation and possiblyrandom extrapolation. The second method is based upon the random selection of points fromthe minimal spanning tree formed by the sample. In a third method, we look at the controlledrandomperturbationof B´eziercontrol points.
KEY WORDS random font; PostScript; B´ezier curves; font design
1 INTRODUCTION
Random fonts allow users to come closer to simulating true handwriting. Both PostScripttype3fontsand
metafont
allowonetocreateveritablerandomfonts,inwhicheachinstanceofa character is rendereddifferentlyonthe screen orprinter.There islittleneedforrandomfonts in ordinary texts, but we believe that there are enormous possibilities such as inprivate mail, personalized advertisements, automatic form letter generators, mathematicstexts in which one wants to emulate blackboard mathematics, captions in Tintinand comicstripsingeneral, restaurant menus, the generationoftest samples forhandwritingcharacterrecognitionsystems, and all applications requiringa human touch.In most modern computer fonts, characters are described directly or indirectly byoutlines, which in turn are B-splines or B´ezier curves or derivatives of such curves (seeKarow[1,2],Hersch[3]orAndr
´e[4]ingeneral,orAdobe’sType1book[5]forPostScript).
Forexample, an ordinaryB´ezier curve used in thePostScript command
curveto
,is definedby four two-dimensional control points,
z
0
z
1
z
2
z
3
, and the curve is the collection of points
z
with
z
=(
1
;
t
)
3
z
0
+
3
t
(
1
;
t
)
2
z
1
+
3
t
2
(
1
;
t
)
z
2
+
t
3
z
3
0
t
1(see, e.g., Su and Liu [6] or Farin [7]). A character outlineconsists of a sequence of B
´eziercurves smoothly joined together at the ends. One cannot just take the collection of controlpoints and add small random perturbations in the hope of obtaining a random character.Very quickly, the characters’ appearance becomes unacceptable and does not reflect whathappenswhenhumansproducehandwrittencharacters. Figure1showsexamplesinUtopia-Regular and Tekton of what happens to fontswhen control pointsare moved. The outcomedepends heavily on the number of B´ezier sections in an outline, and is in most casesunusable. Especially the irregular stroke width becomes a problem.
CCC 0894–3982/95/040281–14$17.50
Received 22 August 1994
1995 by John Wiley & Sons, Ltd.
Revised 16 January1995