FontLab Forum
2012-05-22, 06:52:08 *
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: Contextual Alternate and Kerning  (Read 3115 times)
haquay
Full Member
***

Karma: +0/-0
Viet Nam Viet Nam

Posts: 3


Email
« on: 2009-11-14, 21:46:13 »

Hi experts!
1) I m working on my own handwritting font. I want to try to make contextual alternates. For example like
a character by itself
a character in the word "character"
a character in the word " apple"

may be there are 4-5 different a character.

I dont know how to make CALT in Fontlab. Could you please point me a direction. Thank you

I really appreciate.

Logged
Ray Larabie
Hero Member
*****

Karma: +1/-0
Posts: 125



WWW Email
« Reply #1 on: 2010-01-30, 22:52:05 »

Add the alternative glyphs to the Unicode Private Use Area. (E000, E001 etc.) Name them whatever you like as long as it's not an existing glyph name or starts with a number.

Let's say you made a glyph called help

In the OT code, add

feature calt {
  sub h e l p by help;
} calt;


Make sure you have at least one other OT feature or it won't work. If you have a kern feature, that will do.
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!