Importing partial metrics in FontLab

Primary tabs

10 posts / 0 new
Last post
Tim Rolands's picture
Offline
Joined: 12 Jan 2005 - 11:22am
Importing partial metrics in FontLab
0

Does anyone know of a way to import only sidebearings from a metrics file into FontLab? Has anyone written a Python script to do this sort of thing? Or am I just missing this in the core FontLab application?

Any help appreciated. Thanks!

Eric Olson's picture
Offline
Joined: 15 Feb 2002 - 12:06pm
0

Tim — 

I’m not certain about a Python script for this but you can
always use the paste special command. I use it all the
time to swap sidebearings between files.

Tim Rolands's picture
Offline
Joined: 12 Jan 2005 - 11:22am
0

Uh, yeah, that would do it. Thanks!

Barbara Williams's picture
Joined: 12 Jan 2005 - 9:44pm
0

Related question: we’re about to tackle converting all our Quark kerning table data into kern pairs in FontLab, and writing off a new version of the font so’s we can use said kerning in InDesign. Is there any way to automate this process? Or a less cumbersome pathway? ‘preciate any advice.

John Hudson's picture
Offline
Joined: 21 Dec 2002 - 11:00am
0

Can you post an example of your Quark kerning table data, so I can analyse it? Generally, it is pretty easy to manipulate simple data like kerning pairs in a text editor to make an AFM that is importable to FontLab.

Charles Ellertson's picture
Joined: 3 Nov 2004 - 11:00am
0

» Generally, it is pretty easy to manipulate simple data like kerning pairs in a text editor to make an AFM that is importable to FontLab. »


Well, yes and no. You can export the Quark kerning data to a

Chris Lozos's picture
Offline
Joined: 25 Feb 2004 - 11:00am
0

TexEditPlus or BBedit do a better search job than Word

John Hudson's picture
Offline
Joined: 21 Dec 2002 - 11:00am
0

I would handle the character to glyph name conversion with a simple macro, then replace spaces with tabs and paste the data into a spreadsheet, and convert the kerning values column with a multiplication function. Then paste the results back to the text editor and into an AFM file.

In FontLab, it should be possible to use a Python script to batch generate AFM files for all fonts.

Adam Twardoch's picture
Offline
Joined: 3 Dec 2002 - 7:36pm
0

> In FontLab, it should be possible to use
> a Python script to batch generate AFM
> files for all fonts.

That’s even easier. Tools / Transform Range; Transformation Range: Fonts in the Fonts List; … / Destination format: Type 1 (PFB); + / (Add the fonts); Choose directory / (Select output folder).

You will get a bunch of PC Type 1 fonts that all include AFM files.

Regards,
Adam

Charles Ellertson's picture
Joined: 3 Nov 2004 - 11:00am
0

» … then replace spaces with tabs and paste the data into a spreadsheet, and convert the kerning values column with a multiplication function. Then paste the results back to the text editor …»

I’d still use V-Edit. you write your string of S&R’s one time, add to it if you need to (i.e., a new character or higher kerning value), then run the macro. Whatever one is most comfortable with.

Cheers,
Charles