Single Stroke font ( like font for CNC / engraving )


#41

You can automate the (re-) opening of paths in Ai. Ai path items have a closed property. You could control that with a little JavaScript.

Does it have to be Ai/InD? There used to be a special engraving software that would take OTFs without subroutines and with a different suffix, and it would leave out the closepath statement when interpreting the paths. Should be mentioned somewhere in the depths of the forum archives.

Edit: Here is AppleScript code that opens every selected path in Adobe Illustrator. Feel free to adapt it to your needs. I guess that something similar is possible in InDesign:

tell application "Adobe Illustrator"
	tell document 1 -- frontmost document
		set numberOfPaths to count path items
		repeat with i from 1 to numberOfPaths
			set thisPathItem to path item i
			if selected of thisPathItem then
				set closed of thisPathItem to false
			end if
		end repeat
	end tell
end tell

#42

No, it doesn’t have to be Ai. They will use Id to compile/arrange the text, then send it as vector PDF to InkScape, which then will be drawed with AxiDraw (as I understood).

I found this page with some good info. By “temporary closing paths” they mean closing on export as with your Python script? Then using other script to reopen? But how will that last script know which nodes to cut?


#43

It does not need to; it just removes the closepath instruction at the end. Please read this post from further above to understand what closepath means:


#44

A different solution would be so use drawbot to make the pdf. Then you have full control over the paths. And drawbot can be easily automated.


#45

Hello, I’m new to Glyphs and am trying to do a similar thing with single strokes but primarily for aesthetic purposes (wanting a very thin, hairline font). Is there an easy way to make this change universally (making a new node 100 units above all else and then closing paths) for all characters in a font? I have figured out how to do it for individual paths but it is very tedious.


#46

Hi @bluedog:
Where do you want to use it? In AI? Please try the suggestion from above:

  1. close all paths in Glyphs (with the script from above)
  2. export without removing overlap
  3. opening the paths in Illustrator (with the AppleScript from above)

Then you do not need to add any points.


#47

Thanks—I will try the script above, but I want to be able to use this font as a standard OTF in Word and other applications as well as Illustrator. The glyphs I have drawn are very intricate with many intersecting paths, and when I tried closing the paths previously (and exporting without removing overlap), it resulted in incorrect closures, sort of like the example above:

So I want to be sure that when I close the paths, it is just making a very thin shadow/double of the glyph and closing the nodes that way rather than closing paths the default way, and I do not want to have to do an extra step of re-opening paths in the application where I am typing. Thus I thought the solution of moving all nodes up slightly and then closing would be the best solution. I appreciate your help.


#48

Nevermind, I think I’ve figured it out—I outlined strokes in Illustrator, set the stroke to zero pt, and then copied the paths into Glyphs, and now upon export (after fixing compatibility and unchecking “Remove Overlap”) it is looking fine. Thank you!