FontLab Forum
2012-02-08, 19:46:14 *
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: Classes Properties  (Read 1493 times)
malcolm
Hero Member
*****

Karma: +0/-0
Posts: 26


Email
« on: 2010-06-30, 11:39:23 »

Hi

Does anyone know if there are properties for the font.classes attribute for the following?
KernClass(boolean)
OTClass(boolaen)
FirstSideKern(boolean)
SecondSideKern(boolean)

thanks
malcolm
Logged
Eigi
Beta: FontLab Studio Mac
Hero Member
***

Karma: +7/-0
Germany Germany

Posts: 55



WWW
« Reply #1 on: 2010-06-30, 12:03:47 »

Hello,

There are methods of the font onject:

SetClassFlags(int class_index, bool left, bool right)
allows to set 'left' and 'right' properties of the kerning class

SetClassFlags(int class_index, bool lsb, bool rsb, bool width)
allows to set 'lsb', 'rsb' and 'width' properties of the metrics class

GetClassLeft(int class_index)
returns the 'left' property of the class

GetClassRight(int class_index)
returns the 'right' property of the class

GetClassMetricsFlags(int class_index)
returns the tuple containing LSB, RSB and Width flags of the metrics class



Eigi
Logged
malcolm
Hero Member
*****

Karma: +0/-0
Posts: 26


Email
« Reply #2 on: 2010-06-30, 19:40:06 »

Eigi

Many thanks. I have found them. Just what I need.

Malcolm
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!