summaryrefslogtreecommitdiff
path: root/src
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
parented875f94c112bd74b53dd402b97aa417a78c9529 (diff)
downloadinter-e322506294826997d6d9529b04a7beef77b8f1bc.tar.xz
move tt sub "ligatures" from calt to ss05
Diffstat (limited to 'src')
-rw-r--r--src/Inter.glyphspackage/fontinfo.plist19
-rw-r--r--src/features/calt.fea16
-rw-r--r--src/features/ss05-tt.fea19
3 files changed, 37 insertions, 17 deletions
diff --git a/src/Inter.glyphspackage/fontinfo.plist b/src/Inter.glyphspackage/fontinfo.plist
index f93108b2e..dd916347e 100644
--- a/src/Inter.glyphspackage/fontinfo.plist
+++ b/src/Inter.glyphspackage/fontinfo.plist
@@ -2162,7 +2162,7 @@ languagesystem latn CAT;
name = Languagesystems;
},
{
-code = "# used by calt
+code = "# used by ss05
lookup sub_tt2 {
sub t by t.1;
} sub_tt2;
@@ -2423,10 +2423,27 @@ tag = ss03;
{
code = "include(features/ss04-disambiguation.fea);
";
+labels = (
+{
+language = dflt;
+value = "";
+}
+);
notes = "Name: ";
tag = ss04;
},
{
+code = "include(features/ss05-tt.fea);
+";
+labels = (
+{
+language = dflt;
+value = "";
+}
+);
+tag = ss05;
+},
+{
code = "include(features/cv01-one.fea);";
tag = cv01;
},
diff --git a/src/features/calt.fea b/src/features/calt.fea
index 1b67187eb..dcd5a05ee 100644
--- a/src/features/calt.fea
+++ b/src/features/calt.fea
@@ -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;
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;