Testing #skelefont script by @raphael and Benjamin Dumond.

Took Syne font by Bonjour Monde for a first ride. Works smoothly!

Now I want a real SVG stroke font to be able to plot/embroider it through @inkscape #Hershey text module.

I'll see if I have some time to do it. It shouldn't be too complex to do... But maybe the original authors want to tackle it? ;)

@raphael
Oh I see in the TODO that you don't use the expand stroke from Fontforge.

I have made that step here: https://osp.kitchen/work/balsamine.2014-2015/tree/master/scripts/UmePlume/#project-detail-files

But not as smooth as you did in Skelefont. We should try to combine everything :)
What was a bit cumbersome at the time was that when you import a non-closed SVG with no stroke-width in Fontforge, it closes the path automatically.

The script ufo-clean reopens those paths (with a few missed shots, but worked quite well globally). I liked to have one stroke UFO font saved. Then I could generate any fonts from there without having to re-autotrace everything.

@raphael

Sequel of yesterday's post on #skelefont . I made a fork here: https://gitlab.com/svilayphiou/skelefont

If you launch the script as usual, it produces an .otf just like before, but without passing through potrace (I left the old code commented but we could remove it).

If you add `-s True` in the command-line, it will generate 2 files: a .ufo and an .svg file.
I don't understand why the .svg font closes the path although the .ufo is fine.
Generating the .svg from the .ufo in Fontforge GUI has the same behaviour...

TODO:

- adding parameters in the command-line for `Fontforge.stroke()` params.
- not sure why the param "-s" is always true even if you say "-s False" (I'm not used to argparse)
- debug the .svg font to be able to use it as a Hershey text

It's already great that #Fontforge stopped closing opened paths for the .ufo. Now we have to dig into the .svg problem... If someone knows why, please shout!

Stéphanie Vilayphiou / Skelefont · GitLab

Script to generate a stroke font from an outline font

GitLab

@raphael
I guess the closed contours of an SVG font is normal. I thought again about the process of Relief Single Line font where they make a simple search/replace to reopen the contours. → <https://github.com/isdat-type/Relief-SingleLine>

I added this search/replace in the script. Now we can have proper stroke fonts for #Hershey text in @inkscape for #plotter or #embroidery. :)

I will stop spamming here and get back to "real work".

GitHub - isdat-type/Relief-SingleLine: Single-line / open-paths sans serif font running in Adobe CC, Inkscape, Rhino and CAD softwares

Single-line / open-paths sans serif font running in Adobe CC, Inkscape, Rhino and CAD softwares - isdat-type/Relief-SingleLine

GitHub
@vvvvvilay @raphael @inkscape So cool, thank’s @vvvvvvilay for these posts
@vvvvvilay pretty amazing what you have done, I will take a closer look at it soon and merge your changes. Cc @grifi

@raphael @grifi
You've done the biggest part ;)
I just recycled some old practice.
It's nice to see that I'm not that rusty yet 😅 maybe @julienbidoret is right after all, I'm not yet a dinosaur ;)

I saw that there were still some spacing and metrics issues. I'll look into that...

@vvvvvilay
Damn. Sure! And I've looked at your merging of the two approaches with a certain interest. These last weeks, after having asked for the nice help of both @grifi and @AntoineGelgon, I made my first steps into the “stroke to font” world (and was quite happy with it:). So, please go on!
@raphael