Is there a way to automate the importing of images? I have hundreds, perhaps thousands of images that need to be converted into font codepoints, and i’d hate to do it manually for each image.
If you have the images already saved with suitable file names, just Drag and Drop them all at once into FontCreator. PDF or AI files will be very much faster. Bitmaps should be big enough to give a good trace, but bigger images will be slower, of course.
Size Does Matter Do some thorough testing with the import threshold settings and decide how big the images need to be to get a smooth trace. Don’t bother creating hundreds or thousands of images that are next to useless for the required task.
Otherwise, try the method described in this tutorial.
Other than drag and drop, there is no other way?
What other way do other programs use?
Often times programs will accept arguments. Other times they will allow you to script functionality for operations that are commonly performed.
For example, if one were to open up a text file, one could click the notepad icon, and navigate through the menu to select a text document to open.
Or one could write a bat script to pass in the name of 10,000 text files as arguments to notepad one at a time.
I can generate a thousand images using Java or another programming language, but manually importing the images into another program takes a considerable amount of effort and time.
I am asking because I do see that with the newer version of FontCreator, there is a new feature allowing the use of scripts, but I don’t know what flexibility the scripts provide and I cannot find adequate documentation to answer these questions. I won’t purchase the program unless I know that this is possible.
Thank you in advance!
What I meant was, “What other font editor programs will allow you to import images using scripting?” What are your alternatives to doing it manually?
OpenType scripting is for things like Glyph Substitution. For example, a font can contain a feature for using OldStyle figures. If the user enables OldStyle Figures in the supporting application for a font that has the OpenType OldStyle Figures feature, the script will automatically substitute a different glyph when the user types 0-9.
lookup OldStyleFigures {
sub zero -> zero.onum;
sub one -> one.onum;
sub two -> two.onum;
sub three -> three.onum;
sub four -> four.onum;
sub five -> five.onum;
sub six -> six.onum;
sub seven -> seven.onum;
sub eight -> eight.onum;
sub nine -> nine.onum;
}
The other kind of scripting that FontCreator supports is the Complete Composites feature, which can be used in conjunction with the Transform Wizard to add multiple new glyphs with character mappings to a font, but it won’t generate new outlines from images.
The kind of macro scripting language that I imagine you’re thinking of is discussed in this feature request thread. It is on the ToDo list, but not implemented yet. I honestly don’t think there is much need for it now that we have the other automation features.
If you can generate the images with Java, drag and drop will soon get them into FontCreator, especially if you can generate Adobe Illustrator, EPS, or PDF vectors.