Problems with TTX for Mac

Ramiro Espinoza's picture

Hi there,

I am having problems trying to decompile a TTF font with the mac version of TTX (2.0b1)

Traceback (most recent call last):
File "Titaantje:Users:just:code:fonttools:Tools:ttx", line 11, in ?
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttx.py", line 250, in main
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttx.py", line 235, in process
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttx.py", line 154, in ttDump
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttLib:__init__.py", line 220, in saveXML
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttLib:__init__.py", line 235, in _tableToXML
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttLib:__init__.py", line 322, in __getitem__
File "Titaantje:Users:just:code:fonttools:Lib:fontTools:ttLib:tables:O_S_2f_2.py", line 106, in decompile
fontTools.ttLib.TTLibError: unknown format for OS/2 table: version 3

Any idea? Is it maybe because my TTX version is outdated?

I downloaded the latest version (2.3) at:
http://sourceforge.net/projects/fonttools/files/

Then I read the install.txt inside folder 'documentation'. There it says:

Installation
For Windows and MacOS there are easy-to-use TTX installers. The rest if this
document is meant for people who want to use TTX/FontTools from the source.

Problem is, I can't find the mac installer in any of the folders.

Can anyone give me a hint?

Thanks in advance.

agisaak's picture

the command-line implementation of version 2.2 is included with AFDKO. I have encountered similar errors when using (the standalone application version of) 2.0b1 but not with 2.2.

ADFKO is available from http://partners.adobe.com/public/developer/opentype/afdko/index.html

André

Ramiro Espinoza's picture

Hi there,

I have AFDK installed but for the moment I only use it for hinting. Thanks for the advise, I will try to use it from ADFK.

Cheers. R.

Ramiro Espinoza's picture

Hi Agisaak,

Can you give me an example on how to run TTX from AFDK? I've been checking the AFDK and I could not find a mention about it.

TIA.

R.

agisaak's picture

It needs to be invoked from the command-line.

In the terminal, type

/Developer/FDK/Tools/osx/ttx

and you should get a brief description of the options available from the command line. Your simplest way of using it is to follow the above with the path to a file (either an .otf, .ttf, or .ttx file).

(n.b. the above path is what is present on my system -- depending on how you installed FDK and the version, yours might be different, but look for a folder called Tools in your installation. You can simplify the above by including the fdk tools in your PATH variable).

André

Ramiro Espinoza's picture

It worked. Thanks!

Syndicate content Syndicate content