Fontlab script (with a simple GUI) to complete Font Names & Metrics of a family
Ramiro Espinoza
Posts: 839
Playing around with Dialog Kit I've made a script to fill the most important fields in a font family at once in Fontlab. The program follows Karsten Lücke's recommendations about Font Metrics and Font Naming in his well known PDFs.
I'm sure several of you will point better methods or syntax so thanks a lot in advance. I will try to improve the interface and the script in the future, but for the moment, this is all I can do. Thanks to Tal Leming and Paul van der Laan for the help.
Usage:
1- Open your fonts
2- Set the "Weight" in each font info and click the "Italic" checkbox (if the font is italic). If you want to use different font weight names to the ones available in the Fontlab menu, the script must be edited. The script will uncheck the boxes later (it does not make linking families)
3- Run the script, complete the required information and press "OK".
4- Go and check the font info in each font to see the changes.
Warning: Robofab and Dialog Kit must be installed.
(*) Note on font metrics:
The script will duplicate "Ascender" and "Descender" in the OS TypoAscender and OS TypoAscender fields. "WinAscent" and "WinDescent" will also be duplicated in the Hhea Ascender and Hhea Descender fields. TipoLineGap will be calculated automatically and LineGap will be set to zero.
Download:
https://github.com/retypefoundry/BatchFontInfo
I'm sure several of you will point better methods or syntax so thanks a lot in advance. I will try to improve the interface and the script in the future, but for the moment, this is all I can do. Thanks to Tal Leming and Paul van der Laan for the help.
Usage:
1- Open your fonts
2- Set the "Weight" in each font info and click the "Italic" checkbox (if the font is italic). If you want to use different font weight names to the ones available in the Fontlab menu, the script must be edited. The script will uncheck the boxes later (it does not make linking families)
3- Run the script, complete the required information and press "OK".
4- Go and check the font info in each font to see the changes.
Warning: Robofab and Dialog Kit must be installed.
(*) Note on font metrics:
The script will duplicate "Ascender" and "Descender" in the OS TypoAscender and OS TypoAscender fields. "WinAscent" and "WinDescent" will also be duplicated in the Hhea Ascender and Hhea Descender fields. TipoLineGap will be calculated automatically and LineGap will be set to zero.
Download:
https://github.com/retypefoundry/BatchFontInfo
1
Comments
-
Is this a Robofont script…? Or do only Robofont people visit these forums??0
-
"...to fill the most important fields in a font family at once in Fontlab" (I am a 98% Fontlab guy).0
-
Hello Ramiro,
thanks for the macro, really dig it.
Have you tried out our "Font Family Naming" script for FontLab, we created together with Karsten? It’s a little bit more straight forward then your macro, but it’s definitely missing the nice GUI, you did. :-)
http://www.cape-arcona.com/news/download/ca_font_family_naming_b-zip/
I’m curious, why do I need to enter Ascender/Descender? Isn’t that something I already entered during the design process of the font?
–Thomas0 -
Hi Thomas,
Thanks, I am glad other designers find my script useful.
I was aware there were other scripts to deal with a family's Font Info/Metrics but as I am learning Python, I just wanted to do it by myself and in a way that fits ReType's workflow.
>> why do I need to enter Ascender/Descender? Isn’t that something I already entered
>> during the design process of the font?
The real design Ascenders/Descenders values are frequently not the identical to the values we enter in the Font Info and sometimes we decide to change them at the production stage. Also, when making webfonts it's necessary to alter the Ascenders / Descenders of the whole family to follow good webfont practices.0 -
Thomas, I wonder if you'd consider publishing this script on Github under a libre license as Ramiro has done?0
-
@Ramiro Espinoza
Ah, okay. Thanks.
@DaveCrossland:
Yes I will!
The script is several years old and I never found the time to do that, but it’s raining tomorrow, so I try to publish them under Github.0 -
The real design Ascenders/Descenders values are frequently not the identical to the values we enter in the Font Info and sometimes we decide to change them at the production stage. Also, when making webfonts is necessary to alter the Ascenders / Descenders of the whole family to follow good webfont practices.
There are four different ascender/descender data points in the OpenType font format, so I'm not sure what Remiro's UI means when it says 'Write your Ascender' and 'Write your Descender'.0 -
The user and all related content has been deleted.0
-
@John: It means that the script will fill all the other ascender / descender values and calculate the gaps.0
-
@DaveCrossland
well, unfair to post another script here (sorry Ramiro), but Dave ask about... Here is ours, now on Github: https://github.com/CapeArconaTypeFoundry/FontFamilyNamingB0 -
@Thomas No problem, but please don't copy my Xerox PARC-like window (just in case, I am joking)0
-
Nice!! This script looks very helpful, and Karstens documentation is great but having code to do it is the next step0
-
So the Ascender/Descender you are asking for are the actual glyph outline extents?0
-
@John I've edited my text on top explaining what the script does with Ascender / Descender & WinAscent / WinDescent data.0
Categories
- All Categories
- 40 Introductions
- 3.7K Typeface Design
- 793 Font Technology
- 1K Technique and Theory
- 609 Type Business
- 443 Type Design Critiques
- 536 Type Design Software
- 30 Punchcutting
- 135 Lettering and Calligraphy
- 82 Technique and Theory
- 53 Lettering Critiques
- 478 Typography
- 300 History of Typography
- 113 Education
- 65 Resources
- 494 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 161 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports