Comment by marcodiego
4 years ago
Those who remember old Borland’s graphics.h, remember it came with an interesting set of fonts. Those were born in the 50’s and are known as “Hershey fonts”.
There is a modern implementation compatible with the old Borland fonts: http://libxbgi.sourceforge.net/
Disclaimer: I implemented it.
Watching bgidemo.c running correctly on a modern machine is indescribably cool.
Inkscape supports converting text to a variety of stroke fonts: Extensions → Text → Hershey Text.
The fonts are SVG, stored in /usr/share/inkscape/extensions/svg_fonts/ under Linux.
I recently took EMS Readability from there and adopted it into a code base that is generating reMarkable documents with strokes and all (rather than PDFs) in support of reverse-engineering actually good rendering, as I wanted text in my generated documents.
I’ve seen some references to Hersey fonts in OpenCV’s text rendering. I wonder if those are from the same lineage.
Very likely. For some background on the Hershey fonts, the tech stack where they were born, and mr. Hershey himself, there is this presentation by Frank Griesshammer: https://vimeo.com/178015110 .
Nice work! If I recall correctly, I used these when I was studying C in high school.
I’m sad to see graphics.h is still used in Pakistan, India and Brazil.
That's sad because its antiquated and means folks are still using DOS?
4 replies →