summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/addliga/addliga.sty
blob: e9a3d0892dbcaf6acfb63d2aac24b46aa74e749c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
% !TEX TS-program = lualatex
% addliga.sty
% Version 1.0
% Adds ligatures to TrueType fonts in LuaLaTeX
% Written 2019 by Daniel Benjamin Miller <dbmiller@dbmiller.org>
% Contributed to the Public Domain
% No Rights Reserved
\ProvidesPackage{addliga}[2019/04/30 addliga 1.0]
\directlua{
  fonts.handlers.otf.addfeature{
    name = "liga",
    type = "ligature",
    data = {
      ['ff']={"f","f"},
      ['fi']={"f","i"},
      ['ffi']={"f","f","i"},
      ['fl']={"f","l"},
      ['ffl']={"f","f","l"},
    },
  }
}
\endinput