Consider the following MWE:


  UprightFeatures = {FontIndex=0}


ff fi fl ffi ffl


When I compile it using LuaLaTeX, no ligatures appear. Yet when I examine the relevant subfont in FontForge, each of the expected ligature glyphs appear at Latin Ligatures. (The only clear difference is that in ff, ffi and ffl, the fs are joined.)

Adding Ligatures = Common, Rare, Historical, Contextual, or Required results in the following error message:

Package fontspec Warning: OpenType feature 'Ligatures=Common' (liga) not
(fontspec)                available for font 'HelveticaNeue' with script
(fontspec)                'CustomDefault' and language 'Default'.

Inserting the following after \usepackage{fontspec} as suggested in this answer has no effect:

    name = "liga",
    type = "ligature",
    data = {
      ['f_f'] = { "f", "f" },
      ['f_i'] = { "f", "i" },
      ['f_f_i'] = { "f", "f", "i" },
      ['f_l'] = { "f", "l" },
      ['f_f_l'] = { "f", "f", "l" },

How can I enable these ligatures in HelveticaNeue.ttc using LuaLaTeX?

  • do you get the ligatures with xelatex? – Ulrike Fischer Jul 27 at 15:34
  • @UlrikeFischer Yes—and all I need is \setmainfont{Helvetica Neue} for that. – solisoc Jul 27 at 15:38
  • Try with the testing version here github.com/zauguin/luaotfload/tree/macfonts. You need the texmf-folder, save it somewhere and activate it with tlmgr auxtrees add path/to/the/texmf. You probably will have to delete the font caches first, so expect that it will take some time until they are recreated. (I'm assuming that you are on a mac ...) – Ulrike Fischer Jul 27 at 15:54
  • @UlrikeFischer I did as directed, except the command I used was tlmgr conf auxtrees add path/to/the/texmf. I also executed luaotfload-tool --cache=erase to delete the font caches. Upon rebuilding the MWE, no luck. – solisoc Jul 27 at 16:15
  • pity, would have been too much luck. Add an issue at github.com/u-fischer/luaotfload/issues and look at issue #73 for the info needed to track down the problem (unless you know of a source for the font that would allow us to run the tests). – Ulrike Fischer Jul 27 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.