FontLab Forum
2012-02-09, 04:19:44 *
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: Fixing stemhist -a in AFDKO 2.5 and Snow Leopard  (Read 1738 times)
mekkablue
Beta: FontLab Studio Mac
Hero Member
***

Karma: +0/-0
Austria Austria

Posts: 40



WWW
« on: 2010-03-29, 13:22:18 »

I got this error when trying to use stemhist -a on an OTF:
Code:
Traceback (most recent call last):
  File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 934, in <module>
    main()
  File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 923, in main
    collectStemsFont(path, options, txPath)
  File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 774, in collectStemsFont
    fontinfo = getFontInfo(topDict, psName, options)
  File "/Users/mekka/bin/FDK/Tools/osx/../SharedData/FDKScripts/StemHist.py", line 458, in getFontInfo
    fontinfoStr = " ".join(fontinfo)
TypeError: sequence item 5: expected string, int found

To fix this, in FDK/Tools/SharedData/FDKScripts/StemHist.py, I changed line 458 from:
Code:
fontinfoStr = " ".join(fontinfo)
to:
Code:
fontinfoStr = " ".join([str(x) for x in fontinfo])

Hope this helps someone out there :-)
Logged
Read Roberts (Adobe)
Moderator
Hero Member
*****

Karma: +6/-0
United States United States

Posts: 27

Fontlab Studio 5.0.4, built 2741, Mac OX 10.5


Email
« Reply #1 on: 2010-03-29, 20:40:37 »

Thank you! I will look into why a fix is needed, and make sure that it folded into the next AFDKO release.

- Read Roberts
Logged
Arno Enslin
Hero Member
*****

Karma: +8/-0
Germany Germany

Posts: 98



« Reply #2 on: 2010-04-01, 18:34:51 »

@ Read Roberts

This also should be fixed, don’t know, if you have seen it:
http://forum.fontlab.com/adobe-fdk-for-opentype-afdko/bug-in-autohintscript-belonging-to-the-afdko-25-21898-t7057.0.html
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!