diff options
author | Rasmus Andersson <rasmus@notion.se> | 2023-05-25 23:06:06 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2023-05-25 23:06:06 +0300 |
commit | 8c770919245d62311071734c0b2a8f1bb157c589 (patch) | |
tree | 56e816210b8a9b536d824fce2d8d331e66799895 /src/features/dlig.fea | |
parent | bc3102a79c1f6677c01ca0345145626bc40cc8ac (diff) | |
download | inter-8c770919245d62311071734c0b2a8f1bb157c589.tar.xz |
move fanyc tt tf etc ligatures from liga to dlig
Diffstat (limited to 'src/features/dlig.fea')
-rw-r--r-- | src/features/dlig.fea | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/src/features/dlig.fea b/src/features/dlig.fea index 37352a4f1..2182a2bd4 100644 --- a/src/features/dlig.fea +++ b/src/features/dlig.fea @@ -1,11 +1,42 @@ # Discretionary Ligatures -# https://docs.microsoft.com/en-us/typography/opentype/spec/features_ae#dlig +# https://learn.microsoft.com/en-us/typography/opentype/spec/features_ae#dlig # Set IgnoreMarks to skip over marks in lookups. # For example, if we have /f/acutecomb/i, treat lookup as /f/i # https://learn.microsoft.com/en-us/typography/opentype/spec/chapter2#lookup-table lookupflag IgnoreMarks; +# left side "trigger" glyph for t.1 and f.1 sub +@DLIG_L_t = [ + f f.1 fdotaccent feng + + k khook kcommaaccent kcaron kacute kdotbelow klinebelow k.base + + 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 + + v vtilde vdotbelow + + w wdieresis wcircumflex wgrave wacute wdotaccent wdotbelow wring + + x xdotaccent xdieresis khacyrillic chi + + y ydieresis uni024F yacute ycircumflex uni0233 ydotaccent yring ygrave ydotbelow + yhookabove ytilde ucyrillic ushortcyrillic umacroncyrillic udieresiscyrillic + uhungarumlautcyrillic yogonek y.sc +]; + +# ffi (note. f.i is sub'd by liga) +sub f [ f f.i ]' i by f.i.1; + +# tt, ft, rt, tf, ff, ft ... +sub @DLIG_L_t t' by t.1; +sub @DLIG_L_t f' by f.1; + +# interrobang sub exclam question by interrobang; sub question exclam by interrobang; sub exclamdown questiondown by invertedinterrobang; |