FontLab Forum
2012-02-08, 20:24:03 *
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: Detecting Reversed PostScript Hints  (Read 2563 times)
delve
Full Member
***

Karma: +0/-0
United States United States

Posts: 2



WWW
« on: 2010-03-17, 15:54:38 »

Hey Everyone,

I'm stumped. Does anyone here know how to detect reversed postscript hints using Python in FontLab?

Here's what I tried:

Code:
font = fl.font

for index in range(len(fl.font)):
glyph = fl.font[index]
vhw = glyph.vhints.width
if len(vhw) < 0:
print glyph.name, vhw

I find there are two things wrong here (but I don't know how to fix them).
1. FL py reports width as not being an attribute of hhints
2. len(vhw) < 0 returns nothing even when I know those instances are present

Any suggestions would be appreciated.

Thanks,
Delve Withrington

Logged
Luc[as]
Beta: FontLab Studio Win
Hero Member
***

Karma: +3/-0
Netherlands Netherlands

Posts: 132



WWW
« Reply #1 on: 2010-03-17, 17:21:31 »

My python slave ;-) knows, but will he answer? Keep in mind that ghost hints have values -20 and -21 for top and bottom ghosts respectively.
Logged
delve
Full Member
***

Karma: +0/-0
United States United States

Posts: 2



WWW
« Reply #2 on: 2010-03-18, 01:10:33 »

Hehe. Let me know if your python slave will tell.

You're right about the ghost hints. I expect those would show up as well, but more specifically I'm trying to tease out those reversed hints left over from legacy font data generated with Fontographer.

Thanks,
D
Logged
Tags: FontLab  reversed  PostScript  hints  Python 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!