CamBam

Resources => Scripts and Plugins => Topic started by: EddyCurrent on September 09, 2020, 19:00:55 pm

Title: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 09, 2020, 19:00:55 pm
I found some fonts at NCPlot website here; http://ncplot.com/stickfont/stickfont.htm , a free "StickFont Font Pack" can be downloaded there.

I thought it would be a little exercise to see if these fonts could be opened in CamBam, so please find attached a plugin to do just that.

Download and unzip the "StickFont Font Pack" to a location of your choice, install the Fonty plugin and restart CamBam.

The plugin called "Fonty" will appear in the Plugins folder.

A text entry form will appear similar to that of CamBam's,

1. click the "Open font file" button, navigate to your "StickFont Font Pack" folder and choose a font.
2. enter some text in the yellow text entry box, multiple lines are allowed.
3. set scale factor and arc fit (values can also be typed directly into the box without using the up/down buttons if desired)

A rule of thumb that seems to work for initial settings is to use an Arc Fit value of 1/3 * Scale Factor.

4. click the "OK" button
5. click at the text insertion point

The text will be drawn as Polylines.
These can then be moved, scaled, rotated or whatever from there.
Use an Engrave MOP to cut.

Edit: *************************

Version 2.0 attached

1. Errors reported were because the character was not found in the font file, they have definitions for English characters only.  I substituted a "space" character for those not found.
2. Added a "scale factor", the plugin detects units used and selects suitable default values.
3. Added "Arc Fit", this makes the characters more rounded.
4. Added Undo point.

Version 3.0 attached

The plugin form will now remember these settings until CamBam is closed.

1. File name and font file data
2. Arc Fit value
3. Scale Factor value
Title: Re: More Fonts for CamBam + plugin
Post by: Bubba on September 09, 2020, 21:42:10 pm
Nice plugin Eddy, Thanks.

IMHO it would be nice to have plugin that convert windows font to stick font, if this is even possible. ;) ;D
Title: Re: More Fonts for CamBam + plugin
Post by: pixelmaker on September 10, 2020, 09:31:40 am
Hello Eddy
Thanks for the plugin.
I have tested it. After inserting the text I get an Unhandled Exeption error message, details in the appendix.
Otherwise the fonts are in a bad quality. There are no curves and the result is not usable. Is there a way to change the resolution?

ralf
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 10, 2020, 10:04:03 am
Ralf,

Thanks for testing, I will loook at the error.

The CHR font files consist of a collection of XY coordinates that when joined together by a line, draw the character.
It may be that the NCPlot software draws a curved line that fits those points.

If the text is kept small they may look okay.

 
Title: Re: More Fonts for CamBam + plugin
Post by: dave benson on September 10, 2020, 10:13:37 am
Thanks Eddy
Works fine for me.
Dave
Title: Re: More Fonts for CamBam + plugin
Post by: pixelmaker on September 10, 2020, 10:31:04 am
The fonts from this package look just as bad in the stick font software. But there are fonts in Stickfont software that have clean curves. You can export them as DXF and open them in CamBam.
By installing the Stickfont Software Demo, all fonts will be installed under C:\NCPlot Software LLC\StickFont v3\fonts. From there they can be used with your plugin, even the clean fonts. There are 40 fonts in total.
By the way, the error does not occur after restarting CamBam.
Thanks again, this way the plugin makes fun

ralf
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 10, 2020, 10:43:49 am
Ralph,

Try using Arc Fit = 0.3 on the text, it makes an excellent improvement.

The other fonts files in the demo won't open because they are in a different format.
Title: Re: More Fonts for CamBam + plugin
Post by: dh42 on September 10, 2020, 18:53:54 pm
Hello

Quote
By the way, the error does not occur after restarting CamBam.

I get the error each time if accented chars are used. ex "ete" works, "été" give an error ; the word that contain accented chars is not written at all and all words that follow it are not written too.

++
David
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 10, 2020, 20:35:42 pm
Version 2 added to first post.

1. Errors reported were because the character was not found in the font file, they have definitions for English characters only. I substitued a "space" character for those not found. (it must be the first Brexit plugin  ;D )
2. Added a "scale factor", the plugin detects units used and selects suitable default values.
3. Added "Arc Fit", this makes the characters more rounded.
4. Added Undo point.
Title: Re: More Fonts for CamBam + plugin
Post by: dh42 on September 10, 2020, 20:44:41 pm
Hello

Nice job !

A suggestion ? ... how about remember the last font used ? (at least in the same CamBam session)

++
David
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 10, 2020, 20:52:03 pm

A suggestion ? ... how about remember the last font used ? (at least in the same CamBam session)

++
David

Yes, I was thinking the same myself.
Title: Re: More Fonts for CamBam + plugin
Post by: Bubba on September 10, 2020, 21:12:04 pm
Hi Eddy.
Just tried the latest edition of your plugin, must say wow what a difference. I like it. Thanks.
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 11, 2020, 15:24:05 pm
David,

I've added the é character to this font file, please see if it works for you before I continue.

Title: Re: More Fonts for CamBam + plugin
Post by: dh42 on September 11, 2020, 18:02:34 pm
Hello

Works perfectly ! ...

Thanks Eddy  ;D

++
David
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 11, 2020, 18:40:23 pm
Hello

Works perfectly ! ...

Thanks Eddy  ;D

++
David

Excellent, Ralph and no doubt others will also need some extra characters.
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 11, 2020, 19:17:20 pm
Version 3 added to first post in this thread.

The plugin form will now remember these settings until CamBam is closed.

1. File name and font file data
2. Arc Fit value
3. Scale Factor value
Title: Re: More Fonts for CamBam + plugin
Post by: dh42 on September 11, 2020, 21:47:57 pm
Quote
Ralph and no doubt others will also need some extra characters.

Yes, but there is not so much in German than in French !

https://german.typeit.org/

https://french.typeit.org/

https://spanish.typeit.org/

The "ö" also exist in French but is missing in the table, but I don't know any word that use the "ÿ" in French ???
of course all exist for caps too

++
David
Title: Re: More Fonts for CamBam + plugin
Post by: dh42 on September 11, 2020, 21:57:44 pm
Quote
but I don't know any word that use the "ÿ" in French

Ah ah, the "ÿ" exist in French !! ... I learn something today ! ; but it seems that it exist only in the name of some villages, streets and in some first name of persons ; it is the ï in "old french" (VIII to XIV century)

++
David

edit: thanks for V3 ;)
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 12, 2020, 08:50:23 am
Half the fun with this plugin was working out the file format of the CHR files produced by NCPlot, little did I know it was all explained in the NCPlot demo version help file   ???
Title: Re: More Fonts for CamBam + plugin
Post by: Bob La Londe on September 13, 2020, 15:28:30 pm
Seems like a very useful and contributory plug-in.  Good job. 
Title: Re: More Fonts for CamBam + plugin
Post by: EddyCurrent on September 13, 2020, 19:36:57 pm
Thanks Bob.