Skip to content

A browser-based tool to render single-line fonts and export text as SVG files to be used with CNC machines like pen plotters.

License

Notifications You must be signed in to change notification settings

jvolker/single-line-font-renderer

Repository files navigation

Single-Line Font Renderer

Text renderer for CNC machines

This web based tool renders and exports text (currently from SVG format) intended for CNC machines like pen plotters or laser engravers.

These machines require a different single-line font type than the more commonly used outline fonts (eg. TTF/OTF) which are mainly intended for screens and printing. More on this topic in this article.

This tool is an attempt to create a browser based alternative to the excellent Hershey Text Extension for Inkscape by Evil Mad Scientist. It has a simplified interface and doesn't require installation. On the downside, this tools feature set is currently more limited.

>> CHECK IT OUT HERE <<

Screenshot of the software

Features:

  • latest fonts from the SVG fonts repository are loaded by default
  • loads local SVG font files optionally
  • adjust font scale and stroke width
  • smoothing/simplification (this is experimental: the results from Inkscape are better in some cases)
  • export as SVG file

Ideas for furture features:

Export and usage

There are many different tools and ways to use this with CNC machines depending on the machine and use-case. Single-line font renderer was built with the following workflow in mind:

  1. This tool exports SVGs to be used and rearranged in a vector/graphic design software like Affinity Designer, Adobe Illustrator or others.
  2. The results can then, for example, be used on an Axidraw pen plotter using saxi, a web based control software for Axidraw plotters.

Fonts

This tool makes use of SVG fonts. This format has advantages over the original Hershey font format as explained in this article. The fonts are sourced from a repositiory with SVG fonts maintained by Evil Mad Scientist. It contains updated Hershey and other fonts converted and shared by a variety of people. Lots of them include more glyphs and therefore better language support than the original fonts.

This tool uses the latest fonts straight from that repository. Please contribute to that repository to improve the variety of fonts and their language support.

Font licenses: Before using any of the fonts, please make sure to check their license contained in that repository.

Acknowledgement

The rendering core is heavily borrowed from: https://github.com/techninja/hersheytextjs
Thanks to Evil Mad Scientist for their pioneering work in this field.

Alternatives to this tool

Development

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

Releases

No releases published

Packages

No packages published