FontLab Forum
2012-05-16, 12:51:43 *
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: MM scripting support in FontLab  (Read 1611 times)
ArchivePoster
Guest
« on: 2008-10-01, 11:05:00 »

Posted by: Roberts
         


Hello!


 


I have been doing some MM stuff via Python in FontLab. In
particular, control the curve points of arbitrary MM layer.


I am confused how different classes access nodes and control
vectors in non-MM-way and in MM-way:


 


In non-MM-way:


Glyph[ node index* ] accesses on-curve nodes one by one


Glyph[ node index* ] [ control point index ] accesses Bezier
curves / off-curve points where applicable.


 


In MM-way,


Glyph[ node index ].Section( layer index )[node index**]
accesses all points one by one, both on-curve and off-curve points. No way to
tell what the point type is. Unfortunately "node index*" 
and   " node index**" are not identical since in MM-way all
points are part of the structure.


 


Is there a better way to access node control points of
various MM layers in FontLab?


Is there a better way to make these MM and non-MM data
structures link?


 


 


Best regards,


Robert


 




         
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!