summaryrefslogtreecommitdiff
path: root/src/features/ss05-tt.fea
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2022-05-31 22:37:01 +0300
committerRasmus Andersson <rasmus@notion.se>2022-05-31 22:37:01 +0300
commite322506294826997d6d9529b04a7beef77b8f1bc (patch)
treeafd16da6a3f458533b21219945e0b951e35f8791 /src/features/ss05-tt.fea
parented875f94c112bd74b53dd402b97aa417a78c9529 (diff)
downloadinter-e322506294826997d6d9529b04a7beef77b8f1bc.tar.xz
move tt sub "ligatures" from calt to ss05
Diffstat (limited to 'src/features/ss05-tt.fea')
-rw-r--r--src/features/ss05-tt.fea19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/features/ss05-tt.fea b/src/features/ss05-tt.fea
new file mode 100644
index 000000000..7218233ab
--- /dev/null
+++ b/src/features/ss05-tt.fea
@@ -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;