I'm probably missing something obvious. I'm using MacTeX 2014. I want to use the font Optima that ships with the Mac OS (10.8.5) -- it is a .ttc font. If I typeset the following TeX file I get no kerning between the Te and the Ty.

% !TEX encoding = UTF-8 Unicode
% !TEX TS-program = LuaLaTeX


% \setsansfont[Kerning=On]{Optima} Mac


\textsf{Test Type}


As you can see, I also tried explicitly turning on the kern feature, but to no effect. I tried the same sample text in Adobe InDesign and the kerning does show up. I have not, so far, found any mentions anywhere of this phenomenon.

  • It seems a problem in the LuaTeX font loader, because XeLaTeX applies the kerning. – egreg Aug 25 '14 at 16:48
  • @egreg Oops -- I should have pointed out that originally I did that test and discovered that XeLaTeX does indeed do the right thing. – sgmoye Aug 25 '14 at 18:48
  • Made interesting discovery. If you say \setmainfont[Kerning=On]{Optima}, the log file contains fontspec warnings "icu-feature-not-exist-in-font": OpenType feature 'Kerning=On' (+kern) not available for font 'Optima' with * script '' and language ''. – sgmoye Aug 25 '14 at 19:00
  • 1
    @Herbert Odd. I am using TL2014: kerning works in XeLaTeX but not in LuaLaTeX. I can confirm that kerning is present in LuaLaTeX in TL2013 and 2012. – sgmoye Aug 26 '14 at 14:26
  • 2
    @mico: LuaTeX never really supported AAT features, what there was something that worked by coincidence; the FontForge code used in LuaTeX translates a subset of AAT features to equivalent OpenType ones, but apart from being incomplete, that code was buggy and crashy and broke hyprid OpenType/AAT fonts, so we decided to remove it. I'm not aware of any working AAT implementation apart from Apple’s, so it is not unreasonable for LuaTeX (that wants to remain OS independent) to not support it. – Khaled Hosny Sep 7 '14 at 21:04

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.