Importing partial metrics in FontLab

timotheus's picture

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!

eolson's picture

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.

timotheus's picture

Uh, yeah, that would do it. Thanks!

b_wms's picture

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

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

>> 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

dezcom's picture

TexEditPlus or BBedit do a better search job than Word

John Hudson's picture

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.

twardoch's picture

> 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

>> . . . 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

Syndicate content Syndicate content