Hershey is a textual vector font format
Hershey is a textual vector font format
Hershey 是一种文本矢量字体格式
Hershey is a textual vector format. Originally created in 1967, the Hershey Fonts are among the earliest digital representations of type. Hershey 是一种文本矢量格式。Hershey 字体最初创建于 1967 年,是字体最早的数字表现形式之一。
A Hershey vector font is a text file in which each line represents a glyph encoded in five parts: Hershey 矢量字体是一个文本文件,其中每一行代表一个字形,并由五个部分编码而成:
- id[5]: The id of the glyph in decimal. id[5]:字形的十进制 ID。
- length[3]: The number of points, in decimal. length[3]:点的数量(十进制)。
- left[1]: The left position of the boundary box. left[1]:边界框的左侧位置。
- right[1]: The right position of the boundary box. right[1]:边界框的右侧位置。
- points[?]: A list of points, ending with a linebreak. points[?]:点的列表,以换行符结束。
A point is made of two characters(x, y) representing each a signed value, where capital R is 0, Q is -1, S is 1, and so on. For example, NW is equal to -4,5. 一个点由两个字符 (x, y) 组成,每个字符代表一个有符号值,其中大写字母 R 代表 0,Q 代表 -1,S 代表 1,依此类推。例如,NW 等于 -4, 5。
Here is an example file containing 12 glyphs: 以下是一个包含 12 个字形的示例文件:
ID---LENLRPOINTS------------------------
1 9MWRMNV RRMVV RPSTS
2 16MWOMOV ROMSMUNUPSQ ROQSQURUUSVOV
3 11MXVNTMRMPNOPOSPURVTVVU
4 12MWOMOV ROMRMTNUPUSTURVOV
5 12MWOMOV ROMUM ROQSQ ROVUV
6 9MVOMOV ROMUM ROQSQ
7 15MXVNTMRMPNOPOSPURVTVVUVR RSRVR
8 9MWOMOV RUMUV ROQUQ
9 3PTRMRV
10 7NUSMSTRVPVOTOS
11 9MWOMOV RUMOS RQQUV
12 6MVOMOV ROVUV
The position ” R”(space followed by capital R) is special, it means lifting the pen, the position that follows will not draw a stroke. 位置“ R”(空格后跟大写字母 R)比较特殊,它意味着抬笔,随后的位置将不会绘制笔画。
JKLMNOPQ R STUVWXYZ
-8-7-6-5-4-3-2-1 0 +1+2+3+4+5+6+7+8
Hershey Renderer, Uxntal Hershey Vector Font, Paul Bourke Hershey Fonts incoming: 2026 Hershey 渲染器,Uxntal Hershey 矢量字体,Paul Bourke Hershey 字体即将到来:2026