FontLab Forum
2010-09-08, 05:47:34 *
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: Kern Feature Generator error  (Read 2941 times)
Bas
Guest
« on: 2009-05-20, 16:34:27 »

The "Kern Feature Generator" macro behaves buggy. Often it outputs a "feature.kern" file which contains correct classes, but the kerning is not converted to class kerning. This happens daily.

Instead of: pos @A_UC_LEFT @T_LC_RIGHT -10;
it makes: pos A t -10;

Solution: in "Application_Support/FontLab/Studio_5/Macros/System/Modules" delete the file "WriteFeaturesKernFDK.pyc", restart FontLab, and all works fine.

I'm not sure if this is a local problem on my computer, or something which can be fixed in the next update of FDK.

groet,
Bas
Logged
Miguel Sousa (Adobe)
Team: Adobe
Jr. Member
****

Karma: +2/-0
United States United States

Posts: 5


View Profile
« Reply #1 on: 2009-06-16, 03:10:57 »

It happens to me too. This issue is in my to do list.
Logged
Bas
Guest
« Reply #2 on: 2009-06-16, 03:41:19 »

I noticed that this doesn't happen once I've got the "feature.kern" file opened in BBEdit. Overwriting apparently goes fine then, without any errors.

groet,
Bas
Logged
Miguel Sousa (Adobe)
Team: Adobe
Jr. Member
****

Karma: +2/-0
United States United States

Posts: 5


View Profile
« Reply #3 on: 2010-02-16, 01:48:24 »

I finally got around to look into this issue, and I found and fixed the bug in our source.
If you can't wait until the next release of the FDK, you can fix the files on your side, since it's very simple. Just follow the instructions below.

Instructions to fix WriteFeaturesKernFDK.py:
1. Open the file 'WriteFeaturesKernFDK.py' in a simple text editor (BBEdit, TextMate, Notepad). You'll find this file in the folder 'Modules' under the path '(/Users/<username>/Library/Application Support)/FontLab/Studio 5/Macros/System/'
2. Search for 'if g[-1] is' (I believe it will be in line #172)
3. Replace 'is' by '=='
4. Delete 'WriteFeaturesKernFDK.pyc' (Notice the final 'c'; this is the compiled version of the module)
5. Restart FontLab or press the 'Reset macro' button
Logged
alexovechkin00
Guest
« Reply #4 on: 2010-03-12, 05:16:59 »

great ive been looking for this solution for 2 hours! finally my frustrations are over! thanks so much!
« Last Edit: 2010-03-12, 05:50:03 by Alex Petrov (FontLab) » Logged
Tags: KernFeatureGenerator.py  WriteFeaturesKernFDK.pyc  kerning 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!