move tt sub "ligatures" from calt to ss05

This commit is contained in:
Rasmus Andersson 2022-05-31 12:37:01 -07:00
parent ed875f94c1
commit e322506294
3 changed files with 37 additions and 17 deletions

View file

@ -365,20 +365,4 @@ sub @Numeral @Whitespace @Whitespace x' @Whitespace @Whitespace @Numeral by mult
# END NxN
# -------------------------------------------------------------------------------------
# BEGIN /t/t => /t/t.1 (horizonal stem on left side cut short)
lookup sub_tt {
# glyphs that when followed by SUB_TT_SRC triggers substitution of the 2nd glyph
@SUB_TT_PREV1 = [
f
r
t tbar tcaron tccurl tcedilla
tcircumflexbelow tcommaaccent tcurl tdieresis
tdotaccent tdotbelow tlinebelow tpalatalhook trthook
t.1
];
@SUB_TT_SRC = [
t
];
sub @SUB_TT_PREV1 @SUB_TT_SRC' lookup sub_tt2;
} sub_tt;

19
src/features/ss05-tt.fea Normal file
View file

@ -0,0 +1,19 @@
# /t/t => /t/t.1 (horizonal stem on left side cut short)
featureNames { name "tt ligatures"; };
lookup sub_tt {
# glyphs that when followed by SUB_TT_SRC triggers substitution of the 2nd glyph
@SUB_TT_PREV1 = [
f
r
t tbar tcaron tccurl tcedilla
tcircumflexbelow tcommaaccent tcurl tdieresis
tdotaccent tdotbelow tlinebelow tpalatalhook trthook
t.1
];
@SUB_TT_SRC = [
t
];
sub @SUB_TT_PREV1 @SUB_TT_SRC' lookup sub_tt2;
} sub_tt;