This article explains how to successfully import vector based images (e.g. EPS AI, PDF,) into FontCreator. If you are looking for tips about importing bitmap based images, then read this tutorial:
Import Images the Right Way (Size Does Matter!)
In vector based image editing software you can use all kinds of objects to create your images. Such objects can be paths, lines, shapes, text, etc. That's not it, as you can also apply specific strokes to each of these objects. These strokes control thickness, how segments join, and the appearance of both ends of an open path. There are numerous other capabilities like fill objects, gradients, etc.
FontCreator only extracts the bare paths, thus completely ignores the strokes, fills, etc. And since glyphs can only consist of closed contours, all open paths are automatically closed.
We could enhance the vector import to support strokes and even more, but this is very complex so we carefully have to decide which features to add in future versions of FontCreator. Fortunately most common vector graphics editors can convert strokes to paths/outlines that can be safely imported into FontCreator.
Here is a logo created with Adobe Illustrator. It contains four lines and a rectangle with two rounded corners and a gap at the lower right. All of these objects contain strokes to give them thickness.
When imported into FontCreator, the result is not as intended as the strokes are not imported, thus the thickness of the objects is stripped off. The lines are all discarded as contours with only two points are useless. The rectangle is imported but the gap is no longer there.
One easy step ensures our vector image can be safely imported into FontCreator. In Adobe Illustrator, select all objects, then from the main menu select Object -> Path -> Outline Stroke. The result is shown here:
When we import this version of the vector image the result is a perfect fit!
5 contours with 44 points is the final result.
Note: if after applying Outline Stroke in Illustrator the source image or imported image lacks quality or areas appear distorted, it might help if you resize the original image within Illustrator prior to applying Outline Stroke to ensure no details get lost/altered.
From Vector (e.g. an Adobe Illustrator image) to Font
-
- Moderator
- Posts: 10808
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
-
- Top Typographer
- Posts: 9722
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
Multiple selected images can be dragged from Windows Explorer and dropped into the FontCreator Overview. They will be imported in sequence, following the glyph they are dropped onto.
The screen shot illustrates how to drag and drop a full alphabet of images into FontCreator. PDF files will import as vectors. The import process will be many times faster than using bitmaps, and the resulting glyphs will generally have fewer nodes. The alphabet of 26 drop capitals took about 3 seconds to import.
The screen shot illustrates how to drag and drop a full alphabet of images into FontCreator. PDF files will import as vectors. The import process will be many times faster than using bitmaps, and the resulting glyphs will generally have fewer nodes. The alphabet of 26 drop capitals took about 3 seconds to import.
My Fonts • Reviews: MainType • Font Creator • Help • FC14 Pro + MT11.0 @ Win 10 64-bit build 19045.2486
Re: From Vector (e.g. an Adobe Illustrator image) to Font
Bhikkhu showed this file:
Where is the source of this pdf file? I would be interested in viewing it to compare with some initials letters I have made. Is it available?The alphabet of 26 drop capitals took about 3 seconds to import.
-
- Top Typographer
- Posts: 9722
- Joined: Tue Oct 29, 2002 5:28 am
- Location: Seven Kings, London UK
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
I don't have the PDF files now. I am not even sure how I made them. Probably I opened the WMF in PagePlus and published to PDF from there.
My Fonts • Reviews: MainType • Font Creator • Help • FC14 Pro + MT11.0 @ Win 10 64-bit build 19045.2486
-
- Moderator
- Posts: 10808
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
The PDF files contain outlines that look like smooth curves, but in fact the are made of short connected lines. So in my opinion this is not the best example, but it does convert correct and fast.
It would be better to have a PDF with true curves, to show how those are converted. I need to look for the original PDF used in my first post...
It would be better to have a PDF with true curves, to show how those are converted. I need to look for the original PDF used in my first post...
-
- Moderator
- Posts: 10808
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
Here is the original Adobe Illustrator file I used. You can open it in Adobe Reader (drag-and-drop), and you can of course import it into FontCreator.
-
- Moderator
- Posts: 10808
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
Usually the imported image needs to be scaled to fit into the visible area.
You can set a specific scale factor through the Options dialog.
Usually it is best to use a default scale factor, otherwise a dot (.) might become as large as an at sign (@).
You can set a specific scale factor through the Options dialog.
Usually it is best to use a default scale factor, otherwise a dot (.) might become as large as an at sign (@).
-
- Posts: 15
- Joined: Wed Dec 07, 2016 2:22 am
Re: From Vector (e.g. an Adobe Illustrator image) to Font
I'm a retired engineer, so naturally I tend to use AutoCAD instead of, say, Adobe Illustrator to create glyphs and subsequently convert them to SVG files with another application. I noted that SVG files thus created need to have the glyph enlarged by dragging one of the corners of the imported image such that the size is correct.
Could someone please tell me what the units are of the grid in Font Creator? If I know that, I can set up AutoCAD files so that (theoretically!) there's a one-to-one correspondence between the Font Creator and AutoCAD grids, which should make life simpler. Thanks.
Could someone please tell me what the units are of the grid in Font Creator? If I know that, I can set up AutoCAD files so that (theoretically!) there's a one-to-one correspondence between the Font Creator and AutoCAD grids, which should make life simpler. Thanks.
-
- Moderator
- Posts: 10808
- Joined: Fri Oct 04, 2002 12:41 am
- Location: Bilthoven, The Netherlands
- Contact:
Re: From Vector (e.g. an Adobe Illustrator image) to Font
Actually more recent versions of FontCreator have improved way of exchanging vector based outlines.
The preferred values depend on the used document, and can be determined from within your external vector software. Do ensure that you measure the values while units are shown in pixels (px). The height of your image is usually a good value for Pixels per em.
The preferred values depend on the used document, and can be determined from within your external vector software. Do ensure that you measure the values while units are shown in pixels (px). The height of your image is usually a good value for Pixels per em.