Author Topic: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X  (Read 6291 times)

Adam Twardoch (FontLab)

  • Product and marketing manager, Fontlab Ltd.
  • Administrator
  • Hero Member
  • *****
  • Posts: 563
  • FontLab Studio 5.1.2, Mac OS X 10.6.8
    • FontLab
[Updated to version 1.1]
This macro makes a simple update of the FEA (AFDKO-syntax) feature definitions from version 1.6 syntax used in FontLab Studio 5.0.x to version 2.5 syntax used in FontLab Studio 5.1.  You can use this macro in FontLab Studio 5.1 beta or public preview to "fix" the FEA definitions in your OpenType panel in an older VFB file created using FLS 5.0.x.

Note: FLS 5.1 build 4311 and newer automatically decompiles feature definitions into FEA 2.5 syntax when opening an .otf or .ttf file. Running this macro is only recommended if you have older VFB files that still use the FEA 1.6 syntax.

After installation, the macro is accessible from the OpenType panel macro flyout menu.

INSTALLATION

1. Download "Upgrade_FEA.zip" below
2. Unzip
3. On Mac OS X, double-click the file "INSTALL.command"
4. On Windows, copy the script from the "data" subfolder into the analogical location within your FontLab Studio user data folder.

(Please test the installation procedure and report any problems.)

Regards,
Adam
« Last Edit: 2012-04-19, 13:58:41 by Adam Twardoch (FontLab) »
Regards,
Adam Twardoch
Fontlab Ltd.

beachmat

  • Sr. Member
  • ****
  • Posts: 12
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #1 on: 2011-10-19, 08:59:09 »
Thanks for this. I don't see any fly-out with the macro on the opentype panel though.

beachmat

  • Sr. Member
  • ****
  • Posts: 12
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #2 on: 2011-10-19, 09:34:33 »
This message appears in the Fontlab output when I try to install it:


Traceback (most recent call last):
  File "<string>", line 69, in <module>
AttributeError: 'module' object has no attribute 'relpath'

Alex Petrov (FontLab)

  • Tech Support, Fontlab Ltd.
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 589
    • FontLab
    • Email
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #3 on: 2011-10-19, 10:17:04 »
System version ?
Regards,
Alex Petrov
Fontlab Ltd.

beachmat

  • Sr. Member
  • ****
  • Posts: 12
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #4 on: 2011-10-19, 11:09:52 »
OSX.5.8 on PPC

Evertype

  • Beta: Fontographer
  • Hero Member
  • ***
  • Posts: 233
    • Evertype
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #5 on: 2011-11-14, 11:05:39 »
I installed it. How do I "use" the macro?
Michael Everson

Alex Petrov (FontLab)

  • Tech Support, Fontlab Ltd.
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 589
    • FontLab
    • Email
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #6 on: 2011-11-14, 11:53:14 »
Note: FLS 5.1 build 4311 and newer automatically decompiles feature definitions into FEA 2.5 syntax when opening an .otf or .ttf file. Running this macro is only recommended if you have older VFB files that still use the FEA 1.6 syntax.

Open your old vfb with OT features, open the OpenType panel and choose Upgrade FEA in the OT Macro menu (see the screen shot).
Regards,
Alex Petrov
Fontlab Ltd.

manfred.nehls

  • Jr. Member
  • **
  • Posts: 1
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #7 on: 2012-04-02, 05:04:53 »
I installed the script (double-clicked the file "Install_onMac.command") but I don't see the macro in the fly-out menu.

Mac OS X 10.5.8
FontLab Studio 5.1.1 Build 4353
« Last Edit: 2012-04-02, 05:24:11 by manfred.nehls »

Adam Twardoch (FontLab)

  • Product and marketing manager, Fontlab Ltd.
  • Administrator
  • Hero Member
  • *****
  • Posts: 563
  • FontLab Studio 5.1.2, Mac OS X 10.6.8
    • FontLab
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #8 on: 2012-04-02, 10:40:15 »
Manfred,

could you try to install it manually? Inside of the "data" folder there is Studio5/Macros/System/OpenType/Upgrade_FEA.py

There should be a [your user home folder]/Library/Application Support/FontLab/Studio5 folder. Inside of that folder, there should be the subfolders Macros > System > OpenType. If those subfolders aren't there, please create them (to replicate the subfolder structure of the "data" folder that comes with the script).

Then, put the "Upgrade_FEA.py" file into the [your user home folder]/Library/Application Support/FontLab/Studio5Macros/System/OpenType/ and restart FontLab Studio.

Does that work?
Regards,
Adam Twardoch
Fontlab Ltd.

iannnnn

  • Jr. Member
  • **
  • Posts: 1
Re: New script: "Upgrade FEA" for FLS 5.1 for Mac OS X
« Reply #9 on: 2014-03-15, 01:59:34 »
Hi,

I've tried above, then click Upgrade yet.
But the Output Panel still display WARNING message below:

Code: [Select]
[WARNING] <TemplateThaiFont> [internal] Feature block seen before any language system statement.  You should place languagesystem statements before any feature definition [/Users/iannnnn/Library/Application Support/FontLab/Studio 5/Features/fontlab.fea 30]
[FATAL] <TemplateThaiFont> glyph class not defined (text was "@con20") [/Users/iannnnn/Library/Application Support/FontLab/Studio 5/Features/fontlab.fea 74]
frac

• OSX 10.9.2
• FLS 5.1.4 (Build 4868)