GraphicsPath font "centerline" of font (for engraving)

138 Views Asked by At

I am writing own custom application for engraver. I can send vector data (lines) to it.

Using GraphicsPath.AddString and retrieving it (using PathPoints and PathTypes) gives me only outline of the font (lines defining the shape but I need line through the center).

I could do it by hand (like seen here) but it is 26 characters * 2 (upper and lower case) per every font I would want to use.

The engraver is not self-made and it is using limited (and modified) version of HP-GL without support for characters.

How can I (by C# code) calculate those lines to engrave? Preferably without using external library.

0

There are 0 best solutions below