PDA

View Full Version : Does anybody have a C# parser for Hershey fonts?



curea
10-23-2012, 10:31 PM
I am trying to do some simplex font cutting and it looks like the Hershey fonts would be the best. Anyone have any c# code hanging around?

dana_swift
10-24-2012, 10:09 AM
Yep I do.

D

dana_swift
10-24-2012, 10:13 AM
You might consider the stroke fonts in PartWorks or Aspire. Those all appear to have their roots in Hershey fonts. PartWorks has more type faces than Hershey in addition to the group originally created by doctor Hershey.

If you only have a few things to engrave, the PartWorks options is highly recommended. If you have thousands of things to engrave with unique strings the Hershey font solution is the only way to go.

D

curea
01-04-2013, 09:25 AM
I have quite a few strings to engrave, all different, and I am either going to have to write it myself or if you already have some code I could adapt that would be GREAT!

curtiss
01-04-2013, 07:32 PM
I gave all my c# Hershey fonts to my friend Dana... :):):)

What the heck is a Hershey Font ??? :confused:

dana_swift
01-04-2013, 11:46 PM
Curtis, go to:

http://northstar-www.dartmouth.edu/doc/idl/html_6.2/About_Hershey_Vector_Fonts.html

All of the Hershey fonts are in the public domain, that makes them very attractive.

Its hard to find the glyph definition strings, and that is public domain. I am happy to provide them. See the attached zip file. You can find the documentation for the glyph string coding on the web.

The attached zip file has a C# file with the glyph coding strings, and the font family glyph index tables.

D

dana_swift
01-04-2013, 11:51 PM
Addendum:

Here is the same information for C language. The header at the top explains the encoding scheme. That is what you need to use the zipped file I posted.

http://svn.r-project.org/R/trunk/src/modules/vfonts/g_her_glyph.c

Also the parent directory has a C library to handle hershey fonts:

http://svn.r-project.org/R/trunk/src/modules/vfonts/


D

rb99
01-05-2013, 03:35 AM
Brainiac font dudes.