1

This is a recurring topic, but I haven't found a satisfactory and up-to-date answer. I apologize for any redundancy.

I'd like to use Hoefler Text within Linux/Tex Live. I installed the font as a system font. I load it with Lualatex.

Writing in French, Hoefler has some problems with properly kerning the apostrophe:

enter image description here

L\mbox{'}exemple is better:

enter image description here

However, this is not practical. Given that microtype's kerning is not available in Lualatex, how would you best solve the issue? Is this achievable through \directlua? Should I install the font to be used through pdfTex?

4
  • 2
    tex.stackexchange.com/q/599837
    – Thérèse
    Apr 18, 2023 at 13:45
  • Thanks I could have spot this post. One last question if I may: how would you define the space between the L et the apostrophe as achieved with \mbox without defining the kerning for L?
    – jfk
    Apr 19, 2023 at 14:46
  • Sorry, I don’t understand what you’re asking in your comment. Maybe I need more caffeine.
    – Thérèse
    Apr 21, 2023 at 16:39
  • Do you use babel?
    – projetmbc
    May 6, 2023 at 19:03

1 Answer 1

2

After some testing, I realised that the problematic kerning was rather between the "L" et the apostrophe (I also sligthly corrected the "T"):

\directlua{fonts.handlers.otf.addfeature
  {
    name = "kern",
    type = "kern",
    data = {                        
    ["L"] = { ["quoteright"] = 300 },
    ["T"] = { ["quoteright"] = 100 },
    }, 
  }
}
1
  • 1
    Another useful reason why LuaLaTeX is awesome!
    – user287367
    May 6, 2023 at 19:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .