A simple single line font for openframeworks. Intended for machines like laser cutters, pen plotters, CNC-routers,...
Forks
Forks pushed to more recently than tobiaszimmer/ofxHersheyFont itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.
README
ofxHersheyFont
A simple single line font for openFrameworks.This version of ofxHersheyFont uses these SVG fonts which are provided by the excellent Hershey Text Extension for Inkscape by Evil Mad Scientist.
Best to be used if you want to carve/engrave text with machines like CNC-routers or lasercutters.
example-basic
- draws all available characters at different scales and rotations.
example-axidraw-hershey
- shows how to load other fonts
- draw them as
ofPath
example-python-string
- I added
string ofxHersheyFont::getPath_asPythonString(string stringValue, string prefix, float xPos, float yPos, float scale)to extract the font's paths and construct a string that can be used to send a python command to my Axidraw plotter. - I am use this function in this example_axidraw_python_hershey.
Supported platforms
Tested on- macOS 10.15.7, OF 0.11.0
Credits
The Hershey Font was developed by Dr. Allen V. Hershey in 1967.The original addon by tobiaszimmer contained the 'Simplex' characters of the Hershey Font (ASCII codes 32 – 126), which were made available by Paul Bourke. http://paulbourke.net/dataformats/hershey/
This updated draws with axidraw SVG fonts, including classic Hershey fonts and ESM fonts.
ofxAddons