FontLab Forum
2012-05-22, 21:19:11 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the FontLab forum, read how to use it! Update: Archives from old MSN forums are now available on our forum.
 
   Home   Help Search Calendar Downloads Tags Login Register  
Del.icio.us Digg FURL FaceBook Stumble Upon Reddit SlashDot

Pages: [1]
  Print  
Author Topic: Importing hints from compiled fonts to Fontlab  (Read 3253 times)
jamespuckett
Beta: FontLab Studio Mac
Hero Member
***

Karma: +2/-0
Posts: 139


Email
« on: 2011-01-11, 16:32:06 »

If I want to hint a font on the command line using the Adobe autohinter how do I import those fonts into the corresponding Fontlab VFB file?
Logged
Adam Twardoch (FontLab)
Product and marketing manager, Fontlab Ltd.
Administrator
Hero Member
*****

Karma: +12/-4
Germany Germany

Posts: 329


FontLab Studio 5.0.4, Mac OS X 10.4.11


WWW
« Reply #1 on: 2011-01-11, 17:11:06 »

The AFDKO includes a FontLab macro that lets you run the Adobe autohinter directly within FontLab Studio.

If you do it via commandline, though, you'd need to auto-hint a .pfa, then open it in FontLab Studio and use a Python script to copy the hints from that font into your target VFB.

I'll write such macro if I have some spare time... Smiley

A.
Logged
jamespuckett
Beta: FontLab Studio Mac
Hero Member
***

Karma: +2/-0
Posts: 139


Email
« Reply #2 on: 2011-01-11, 17:51:05 »

Thanks, Adam. The problem with the Fontlab macro is that it cannot create the flex hints that the command line version can.
Logged
Arno Enslin
Hero Member
*****

Karma: +8/-0
Germany Germany

Posts: 98



« Reply #3 on: 2011-01-13, 19:29:45 »

@ James

As far as I remember autohint.exe does not expect a pfa. You also can hint otf with it. And if you use the macro in FontLab, download the bugfixed version: http://forum.fontlab.com/adobe-fdk-for-opentype-afdko/bug-in-autohintscript-belonging-to-the-afdko-25-21898-t7057.0.html;msg23917#msg23917.

(Makeotf expects pfa.)

Nevertheless this

Quote
I'll write such macro if I have some spare time...

would be cool.

Quote
The problem with the Fontlab macro is that it cannot create the flex hints that the command line version can.

Not the macro, but FontLab Studio. All you have to do is to activate flexhint generation in the FontInfo dialog of FLS (Not in the options dialog!). FLS will add the flexhinting. Note, that this will not destroy the autohinting from the macro! There is no disadvantage with regard to the macro. Just use the bug fixed version, because then you can choose, if you want to generate hints with or without replacement.

If you want to convince yourself, just autohint your font one time with the macro (with activated flexhint option) and one time from the command line (with flexhint option). Then decompile the name table of both font files with TTX and compare them with the help of a program like UltraCompare.
« Last Edit: 2011-01-13, 19:52:15 by Arno Enslin » Logged
Tags:
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!