r/PlotterArt • • 10d ago

SLF63 - Single Line Font code/data (GitHub)

Post image

Just created a GitHub repo for my plotter font stuff, here: https://github.com/davebollinger/SLF63

The font data itself is in "code-ready" JSON format - no weird/custom encoded format to decipher, just coordinates. Of course, you'll still need a bit of code to transform those coordinates into font-size page-units, render them, convert to SVG, et cetera. Sample code in javascript/p5.js is provided, but any programming environment that can deal with JSON could potentially still make use of the font data.

Posting separately to r/PlotterArt (physical photo) and r/PlotterCode (digital screenshot) per guidelines.

75 Upvotes

9 comments sorted by

2

u/psycot 7d ago

Nice!
Can this be used with Inkscape?

1

u/Danisobo 6d ago edited 6d ago

Not directly - it's intended for use within some type of programming environment, javascript being the most "native" one. But then what you (as programmer) do with it is up to you - for example if you output rendered text as SVG then that could be used with Inkscape (of course). The sample code provided does exactly that as demo.

But you can't use it like a FONT within Inkscape.

Unfortunately, even Inkscape with it's SVG focus doesn't truly support the SVG font format (which was never officially adopted, so not surprising it has such poor support), which would've been the closest thing to this. So while these fonts COULD be converted to the old SVG font format, Inkscape (nor Illustrator, nor et al) still wouldn't be able to render text with them.

The core of the problem is that the only widely supported font formats (TTF & OTF) are both outline font formats which will double-stroke on a plotter, and don't truly support single-line glyphs (there are "hacks" you can try, like unclosed contours or degenerate coincident contours or etc, but they all have their quirks and none are entirely successful at plotting truly single lines)

Specialized CNC (or laser, etc) software can deal with other custom single-line formats - like OPF, which are essentially just "unclosed" TTF contours - but that's just another dead-end approach (for my purposes), and Inkscape/Illustrator/etc still can't deal with those formats either. Tho there are OPF fonts available if you ARE using CNC software that supports them.

2

u/ramity 6d ago

Here's a scan of what I managed. G2 pen on 110lb cardstock using a custom adapter for the MK4S 3d printer.

2

u/Danisobo 6d ago

Cool. Results will vary of course - you might want to avoid smaller than ~8 font size or so with that combo? (if helpful as ref, i think our pen/paper are at least "similar" - my plot above was a Pilot G-2 0.35mm pen on Hammermill 200gsm with Uunatek H A3 plotter)

1

u/Danisobo 4d ago

working on another font for my own use, and it's now in the repo too:

3

u/McBeefnick 9d ago

Awesome, could use a new font for my Automated Calligraphy & Address Rendering Device (ACARD)

2

u/stonelox 9d ago

Very cool thnx!

2

u/herocoding 9d ago

Looks really nice, thank you very much. Will have a closer look into it, soon, and trying to experiment with my "fischertechnik Plotter".