summaryrefslogtreecommitdiff
path: root/src/features
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2022-05-28 21:25:02 +0300
committerRasmus Andersson <rasmus@notion.se>2022-05-28 21:25:02 +0300
commit8126164a64e89180de1487c222ba5c9fa5048806 (patch)
treeed111a8addb12dc010f350fbb941c3e24759955c /src/features
parent50b2401be03476a497d41c8ca43ddd33e9c3646c (diff)
downloadinter-8126164a64e89180de1487c222ba5c9fa5048806.tar.xz
adds t.1 for /t/t "ligature" via calt
Diffstat (limited to 'src/features')
-rw-r--r--src/features/calt.fea17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/features/calt.fea b/src/features/calt.fea
index 1ca7995e0..1b67187eb 100644
--- a/src/features/calt.fea
+++ b/src/features/calt.fea
@@ -365,3 +365,20 @@ 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;