Hershey is a textual vector font format

Lobsters Hottest Tools

Summary

The article describes the Hershey vector font format, a textual representation of glyphs using a coordinate encoding system where letters map to signed values, and includes examples and links to related resources.

<p><a href="https://lobste.rs/s/ilahdq/hershey_is_textual_vector_font_format">Comments</a></p>
Original Article
View Cached Full Text

Cached at: 05/23/26, 04:47 PM

# hershey Source: [https://wiki.xxiivv.com/site/hershey.html](https://wiki.xxiivv.com/site/hershey.html) ## Hershey is a textual vector format\. 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, where capital`R`is 0,`Q`is \-1,`S`is 1, and so on\. For example,`NW`is equal to \-4,5\. Here is an example file containing 12 glyphs: ``` 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\. JKLMNOPQ**R**STUVWXYZ\-8\-7\-6\-5\-4\-3\-2\-1**0**\+1\+2\+3\+4\+5\+6\+7\+8- [Hershey Renderer](https://git.sr.ht/~rabbits/hershey), Uxntal - [Hershey Vector Font](https://paulbourke.net/dataformats/hershey/), Paul Bourke - [Hershey Fonts](https://solhsa.com/hershey/fontprev.html) **incoming:**[2026](https://wiki.xxiivv.com/site/2026.html)

Similar Articles

About ASCII art and Jgs font (2023)

Hacker News Top

An article by Adel Faure about ASCII art, the artist Joan G. Stark, and the Jgs font, a typeface inspired by her work, published by Velvetyne.

Reviving the IBM Selectric Composer Fonts (2023)

Hacker News Top

Designer Jens Kutilek documents the mathematical and historical research behind reviving IBM Selectric Composer typefaces, exploring the unit-based spacing system and engineering constraints of the iconic 1960s typewriter. The project involved reverse-engineering IBM's 9-unit glyph width system used by the Selectric Composer's interchangeable 'golf ball' type elements.

Hypergraph as Language

arXiv cs.CL

This paper proposes Hyper-Align, a framework that serializes hypergraph structures into tokens via HIDT-O and HIP, enabling LLMs to process high-order relationships, and introduces HyperAlign-Bench for evaluation.

Introducing Glyph Protocol for Terminals

Lobsters Hottest

Glyph Protocol is a new terminal protocol that allows applications to register custom glyphs directly at runtime using Unicode Private Use Area codepoints, eliminating the need for users to install patched fonts like Nerd Fonts. It also lets applications query whether a codepoint is already covered by a system font, enabling graceful fallbacks.