Suitable font for Drawing Module

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
mrlukeparry
Posts: 655
Joined: Fri Jul 22, 2011 8:37 pm
Contact:

Suitable font for Drawing Module

Postby mrlukeparry » Fri Aug 02, 2013 9:40 pm

Hi guys,

I am looking for a suitable font that can be shipped with FreeCAD for the new drawing module. The font shouldn't need to be installed on the machine other than for use in other applications , as the canvas can load font files directly. Can anyone share one suitable for our needs?

I'm not entirely sure what the specific license requirements are but obviously would have to allow FreeCAD to distribute it.

It might even be a nice task to create a font-type that can be used throughout in annotations in the whole of FreeCAD too.

Cheers
Luke
triplus
Posts: 8853
Joined: Mon Dec 12, 2011 4:45 pm

Re: Suitable font for Drawing Module

Postby triplus » Fri Aug 02, 2013 10:49 pm

Probably this is quite challenging task to get appropriate font for technical drawings? After quick search it looks like a set of ISO standards or for the USA ASME standard is used most widely:
In service of the goal of unambiguous communication, engineering drawings are often made professionally and expected to follow certain national and international standards, such as ASME Y14.5 and Y14.5M (most recently revised in 2009) or a group of ISO standards with similar content.
http://en.wikipedia.org/wiki/Engineerin ... mbiguation

For ASME i found:

http://www.cad-notes.com/2012/10/what-i ... -and-type/

And an actual font that it looks like we would be able to use it in FreeCAD:

http://www.fontspace.com/micronus/y145m-2009

When it comes to ISO standards i know it's quite easy to find basic set of rules (size, line thickness...) but ready made fonts:
Technical lettering is the process of forming letters, numerals, and other characters in technical drawing. It is used to describe, or provide detailed specifications for, an object. With the goals of legibility and uniformity, styles are standardized and lettering ability has little relationship to normal writing ability. Engineering drawings use a Gothic sans-serif script, formed by a series of short strokes. Lower case letters are rare in most drawings of machines. ISO Lettering templates, designed for use with technical pens and pencils, and to suit ISO paper sizes, produce lettering characters to an international standard. The stroke thickness is related to the character height (for example, 2.5mm high characters would have a stroke thickness - pen nib size - of 0.25mm, 3.5 would use a 0.35mm pen and so forth). The ISO character set (font) has a seriffed one, a barred seven, an open four, six, and nine, and a round topped three, that improves legibility when, for example, an A0 drawing has been reduced to A1 or even A3 (and perhaps enlarged back or reproduced/faxed/ microfilmed &c). When CAD drawings became more popular, especially using US American software, such as AutoCAD, the nearest font to this ISO standard font was Romantic Simplex (Roman) - a proprietary shx font) with a manually adjusted width factor (over ride) to make it look as near to the ISO lettering for the drawing board. However, with the closed four, and arced six and nine, romans.shx typeface could be difficult to read in reductions. In more recent revisions of software packages, the TrueType font ISOCPEUR reliably reproduces the original drawing board lettering stencil style, however, many drawings have switched to the ubiquitous Arial.ttf.
http://en.wikipedia.org/wiki/Engineerin ... _lettering

It looks like the path of least resistance leads to Microsoft fonts... This is not that appealing in my opinion to rely on this fonts and i investigated a bit further and found ISO 3098 and actual font that might fit perfectly inside FreeCAD:
In some european countries, CAD projects must have font which conform to IS0 3O98 specification. Comercial CADs has this font, but free CADs not. There is no available free font yet, so this project will fix this. This font will be created completely from the scratch. Font is created with free tools like FontForge, Inkscape, Gimp. Font is distributed under GNU GPL licence version 3 with GPL font exception.
Image

http://code.google.com/p/osifont/

This two fonts probably could address majority of use cases and for users wanting to use something else like Arial or Sans Sherif... It's their choice indeed isn't it!
Last edited by triplus on Fri Aug 02, 2013 11:14 pm, edited 1 time in total.
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Suitable font for Drawing Module

Postby NormandC » Fri Aug 02, 2013 11:06 pm

triplus wrote:This two fonts probably could address majority of use cases and for users wanting to use something like Arial or Sans Sherif based... It's their choice indeed isn't it!
Those are great finds triplus.

Unfortunately the Y14.5M-2009 font does not support international characters (no accented letters which is my concern, but no cyrillic or other either). The GD&T symbols are nice though!

Still, at this point it would be good to include both in FreeCAD.
triplus
Posts: 8853
Joined: Mon Dec 12, 2011 4:45 pm

Re: Suitable font for Drawing Module

Postby triplus » Fri Aug 02, 2013 11:11 pm

Unfortunately the Y14.5M-2009 font does not support international characters (no accented letters which is my concern, but no cyrillic or other either). The GD&T symbols are nice though!
Yes BUT i was thinking somebody using US standard probably won't be affected by this that much.

P.S. Unless it has some foreign name. :)
User avatar
NormandC
Posts: 18534
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Suitable font for Drawing Module

Postby NormandC » Fri Aug 02, 2013 11:26 pm

In Canada we use the US standards.

80% of the 8 million inhabitants in the Quebec province have French as their first language, and that includes me. ;)

But I admit that's not a high potential number of FreeCAD users requiring a French Y14.5M-2009 font.
mrlukeparry
Posts: 655
Joined: Fri Jul 22, 2011 8:37 pm
Contact:

Re: Suitable font for Drawing Module

Postby mrlukeparry » Sat Aug 03, 2013 10:00 am

Thanks triplus for researching that, as I'm not really adept in the specific Drawing standards.

https://code.google.com/p/osifont/
triplus wrote:http://code.google.com/p/osifont/

This two fonts probably could address majority of use cases and for users wanting to use something else like Arial or Sans Sherif... It's their choice indeed isn't it!
That looks a particularly good font. One of the problems is the GPL 3 license. I'm not sure where we stand since it's not actually program code that's used at run time and I'm not sure if we are even permitted to distribute it.

In the mean time, I'll install it on my machine to continue development.
triplus
Posts: 8853
Joined: Mon Dec 12, 2011 4:45 pm

Re: Suitable font for Drawing Module

Postby triplus » Sat Aug 03, 2013 2:47 pm

One of the problems is the GPL 3 license. I'm not sure where we stand since it's not actually program code that's used at run time and I'm not sure if we are even permitted to distribute it.
Because of the GPL font exception documents created with this font or font embedded in document doesn’t impose GPL licence on the document:
As a special exception, if you create a document which uses this font, and embed this font or unaltered portions of this font into the document, this font does not by itself cause the resulting document to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the document might be covered by the GNU General Public License. If you modify this font, you may extend this exception to your version of the font, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.
About distributing the fonts and to be on the "safe side" probably font should be in separate directory and when installing FreeCAD something like this should happen:
To be very clear that you have informed your customer of the nature of and conditions on GNU FreeFont, you might for example have your installer pop up a notice, stating what GNU FreeFont is, where it is on your installation disk, and how they can read more about it.
http://www.gnu.org/software/freefont/FAQ.html

If additional information is needed we could contact the author:

http://code.google.com/p/osifont/

Or ask on mailing list as described here:

http://www.gnu.org/software/freefont/FAQ.html
triplus
Posts: 8853
Joined: Mon Dec 12, 2011 4:45 pm

Re: Suitable font for Drawing Module

Postby triplus » Thu May 19, 2016 10:53 pm

Update: osifont is now available under different licenses and one of them is:
GNU LGPL licence version 3 with GPL font exception.
Therefore if there is still a need to provide default font for technical drawings or for other purposes licence shouldn't be a problem anymore.
User avatar
eMPee584
Posts: 4
Joined: Sun Sep 04, 2016 3:55 pm

Re: Suitable font for Drawing Module

Postby eMPee584 » Wed Jul 26, 2017 10:56 am

maybe a bug report needs to be filed? by »someone« :lol:
triplus
Posts: 8853
Joined: Mon Dec 12, 2011 4:45 pm

Re: Suitable font for Drawing Module

Postby triplus » Thu Jul 27, 2017 1:42 pm

Osifont was added to TechDraw workbench in the past.

P.S. I don't know if it gets used/installed on all platforms by default.