summaryrefslogtreecommitdiff
path: root/src/features/liga.fea
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2023-04-24 03:39:37 +0300
committerRasmus Andersson <rasmus@notion.se>2023-04-24 03:39:37 +0300
commit259090593232df4848744259130750a5bd28b6c8 (patch)
treee9d117379b8e99b07110006dddcd08a863acd5b3 /src/features/liga.fea
parent78e9fe26b08fab8e60a2f4cdb66aec191efd9238 (diff)
downloadinter-259090593232df4848744259130750a5bd28b6c8.tar.xz
ligatures (really, substitutions) fi ffi tt ff rf rt etc
Diffstat (limited to 'src/features/liga.fea')
-rw-r--r--src/features/liga.fea45
1 files changed, 23 insertions, 22 deletions
diff --git a/src/features/liga.fea b/src/features/liga.fea
index 28a3b91e9..8fa85f646 100644
--- a/src/features/liga.fea
+++ b/src/features/liga.fea
@@ -6,26 +6,27 @@
# https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-table
lookupflag IgnoreMarks;
-# /r/t -> /r/t.1
-sub [
- r
- rrthook
- uni024D
- rturn
- rturnrthook
- rfishhookrev
- rfishhook
- rdescend
- racute
- rcommaaccent
- rcaron
- rdblgrave
- rinvertedbreve
- rdotaccent
- rdotbelow
- rdotbelowmacron
- rlinebelow
-] t' by t.1;
+# ffi
+sub f f' i by f.i.1;
-# /f/i -> /f.i/i
-sub f' [f i] by f.i;
+# fi
+sub f' [
+ i idotless idotless.double itildebelow ibar igrave iacute iogonek
+ ihookabove idotbelow icyrillic ij i.sc
+
+ j jdotless jdotlessbar uni0249 uni0249.ccmp jcrosstail yotgreek jecyrillic
+] by f.i;
+
+# tt, ft, rt, tf, ff, ft, etc.
+# left side "trigger" glyph for t.1 and f.1 sub
+@LIGA_L_t = [
+ f f.1 fdotaccent feng
+
+ r rrthook uni024D rfishhook rdescend racute rcommaaccent rcaron
+ rdblgrave rinvertedbreve rdotaccent rdotbelow rdotbelowmacron rlinebelow
+
+ t t.1 tpalatalhook trthook tcurl tbar tcedilla tcaron tcommaaccent tdotaccent
+ tdotbelow tlinebelow tcircumflexbelow tdieresis
+];
+sub @LIGA_L_t t' by t.1;
+sub @LIGA_L_t f' by f.1;