FontLab Forum
2012-05-22, 21:53:21 *
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: Special ligation in Fontlab  (Read 819 times)
Kassiopeia
Jr. Member
**

Karma: +0/-0
Germany Germany

Posts: 1


Email
« on: 2011-07-01, 14:08:48 »

Hello,

I designed a font with some ligations out of capital letters. Amongst others there is an AR ligation that only looks good at the beginning of a word. I know how to create ordinary ligations. But is there a possibility to let the ligation occure only at the beginning and ignore it within a word.
I have to say, that I'm a raw recruit and I don't know anything about programming open-type features.

I would be pleased if somebody had a solution.
Many thanks!
Logged
Arno Enslin
Hero Member
*****

Karma: +8/-0
Germany Germany

Posts: 98



« Reply #1 on: 2011-07-03, 08:05:43 »

Code:
feature ss01 {
sub space A' R' by A_R;
} ss01;

should work.

Edited:

But then it does not work in the beginning of a paragraph.

Maybe with the help of a ignore rule:

Code:
feature ss01 {
ignore sub [List of all characters except space, hyphen and a few others] A' R';
sub A' R' by A_R;
} ss01;

I don’t have checked, whether that works.

Edited 2:

Well, now I have checked it. In FontLab Studio it doesn’t seem to work, but according to http://www.adobe.com/devnet/opentype/afdko/topic_feature_file_syntax.html#5.f.ii it should work. I am quoting the passage:

Quote
Example 2. Matching a beginning-of-word boundary:
Code:
ignore substitute @LETTER f' i';
substitute f' i' by f_i.begin;

Maybe you have to compile that with the actual version of the Adobe Font Development Kit for OpenType.
« Last Edit: 2011-07-03, 08:50:59 by Arno Enslin » 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!