Hi there,
I’ve a handwritting style font with more than 2300 alternative character (ss01).
And also I designed a contextual alternates role (A’ denotes the ss01 glyph) that:
- A
- A’A
- A’BA
- A’BCA
( B and C can be any other glyphs)
With the concept, I have more than 9000 lines in calt feature, such as:
lookup SUB_CALT useExtension{
ignore sub uni3904.ss01 uni3904' uni3904 uni3904;
sub uni3904' uni3904 by uni3904.ss01;
sub uni3904' @DEFAULT uni3904 by uni3904.ss01;
sub uni3904' @DEFAULT @DEFAULT uni3904 by uni3904.ss01;
ignore sub uni39FE.ss01 uni39FE' uni39FE uni39FE;
sub uni39FE' uni39FE by uni39FE.ss01;
sub uni39FE' @DEFAULT uni39FE by uni39FE.ss01;
sub uni39FE' @DEFAULT @DEFAULT uni39FE by uni39FE.ss01;
(...)
} SUB_CALT
where @DEFAULT
is a class contains all characters without *.ss01
.
I’ve tried only write few character calt rule and the font can export succefully.
However, when I add the entire calt into font info, the export processing get a warning that Subtable Overflow in lookup: 0 type: single
. I guess that the subtable has a upper limit size (how much?).
Following the OpenType Feature File Specification | afdko guide, I added a useExtension
tag after the lookup
function, and I enabled Use Extension Kerning
in custom parameter, but it still failed for exporting.
How to extend the GSUB table for editing more rule?
Or does there have a better solution for my calt idea?
Or can I edit the font feature via *.ttx
file directly ( I can parse it via fonttool)?
Thank you