Hershey is a textual vector font format

birdculture1 pts0 comments

XXIIVV — hershey

Hershey is a textual vector format.

Originally created in 1967, the Hershey Fonts are among the earliest digital representations of type. A Hershey vector font is a text file in which each line represents a glyph encoded in five parts:

id[5]: The id of the glyph in decimal.

length[3]: The number of points, in decimal.

left[1]: The left position of the boundary box.

right[1]: The right position of the boundary box.

points[?]: A list of points, ending with a linebreak.

A point is made of two characters(x, y) representing each a signed value,<br>where capital R is 0, Q is -1, S is 1,<br>and so on. For example, NW is equal to -4,5. Here is an example<br>file containing 12 glyphs:

ID---LENLRPOINTS------------------------<br>1 9MWRMNV RRMVV RPSTS<br>2 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV<br>3 11MXVNTMRMPNOPOSPURVTVVU<br>4 12MWOMOV ROMRMTNUPUSTURVOV<br>5 12MWOMOV ROMUM ROQSQ ROVUV<br>6 9MVOMOV ROMUM ROQSQ<br>7 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR<br>8 9MWOMOV RUMUV ROQUQ<br>9 3PTRMRV<br>10 7NUSMSTRVPVOTOS<br>11 9MWOMOV RUMOS RQQUV<br>12 6MVOMOV ROVUV

The position " R"(space followed by capital R) is special, it means<br>lifting the pen, the position that follows will not draw a stroke.

JKLMNOPQ<br>STUVWXYZ

-8-7-6-5-4-3-2-1<br>+1+2+3+4+5+6+7+8

Hershey Renderer, Uxntal

Hershey Vector Font, Paul Bourke

Hershey Fonts

incoming: 2026

hershey vector position font points textual

Related Articles