FontLab Forum
2012-02-09, 04:20:56 *
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: Can 'liga' feature complie 30,000 instances?  (Read 1955 times)
theFontfitter
Sr. Member
****

Karma: +0/-0
United Kingdom United Kingdom

Posts: 10



WWW Email
« on: 2010-06-03, 09:25:28 »

I need to create an .OTF font with 30,000 instances of the 'liga' feature.
Example:
sub f i by _fi;
sub g r t by  _great
sub m a x by _ maximum
etc,
etc, x 30,000
Can FontLab/OTF handle that many or what is the limiting factor?
I read that 64k per subtable is the limit, but how can I measure 64k when entering instances?

Thanks
Logged
Adam Twardoch (FontLab)
Product and marketing manager, Fontlab Ltd.
Administrator
Hero Member
*****

Karma: +12/-4
Germany Germany

Posts: 304


FontLab Studio 5.0.4, Mac OS X 10.4.11


WWW
« Reply #1 on: 2010-06-03, 09:29:03 »

Principally, the 64K subtable is the limit, imposed by the OpenType specification. I'm not aware of any mechanism that would allow you to pre-emptively measure the number of substitutions. But the subtables only need to be used within one lookup, and are mostly a problem when using large class-based substitutions. So if you run into the limit, you can split your "liga" definition into multiple lookups and you should be fine.

Adam
Logged
theFontfitter
Sr. Member
****

Karma: +0/-0
United Kingdom United Kingdom

Posts: 10



WWW Email
« Reply #2 on: 2010-06-04, 12:15:05 »

Thanks Adam - so I started entering a few subtables and all is fine except that 
sub f a l l by f_aw_l;  does not display even though it shows no errors when compiling.
(BTW the  glyph 'aw' is a pronunciation ligature).
I assume I have not run into any limit yet! so perhaps it is a lookup ordering problem?
Any ideas would be appreciated.
Adrian

At the moment I have only aalt feature...

~~~~
feature aalt{
  feature liga;
} aalt;
~~~~
and aa liga feature...
~~~~
feature liga { # Default ligatures
language dflt;

   lookup liga_1 { # lookup subtable 1
     sub f f i by ffi;
     sub f i by fi;
     sub f f l by ffl;
     sub f l by fl;
   } liga_1;

   lookup liga_2 { # lookup subtable 2
   sub a i by ai;
   sub e e by ee;
   sub s h o p by sh_o_p;
   sub f a l l by f_aw_l;
   sub f a s t e n by f_a1_s_e1_n;
   sub f a s h i o n by f_a1_sh_e1_n;
   sub f e a t h e r by f_e_th1_er;
      } liga_2;

} liga;
~~~~

Logged
Tags: features  opentype  liga 
Pages: [1]
  Print  
 
Jump to:  

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