fontspec icon indicating copy to clipboard operation
fontspec copied to clipboard

Small caps in Hoefler Text not working since TexLive 2019

Open morberg opened this issue 4 years ago • 0 comments

Description

Small caps support for the macOS provided variant of Hoefler Text stopped working with TexLive 2019.

Check/indicate

  • [X] Relevant for XeTeX
  • [X] Relevant for LuaTeX
  • [X] Issue tracker has been searched for similar issues?
  • [X] Links to <tex.stackexchange.com> discussion if appropriate

https://tex.stackexchange.com/questions/495901/texlive-2019-and-hoefler-text-features

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Hoefler Text}
\begin{document}
\textsc{Small caps}
\end{document}

Further details

TeXLive 2018

Using TexLive 2018 (with fontspec 2.6g) the above example works fine with xelatex and produces small caps in the PDF document.

Lualatex does not work and reports:

LaTeX Font Warning: Font shape `TU/HoeflerText(0)/m/sc' undefined
(Font)              using `TU/HoeflerText(0)/m/n' instead on input line 13.

[1{/usr/local/texlive/2018/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./hoefler.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

TeXLive 2020

When using TexLive 2020 (with fontspec 2.7i) neither xelatex nor lualatex works (I have not verified that it is broken in TexLive 2019 but trust the stackoverflow comments). By manually adding the missing font shape:

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Hoefler Text}
\DeclareFontShape{TU}{HoeflerText(0)}{m}{sc}%
       {<-> "Hoefler\space Text:Letter\space Case=Small\space Caps"}{}
\begin{document}
\textsc{Small caps}
\end{document}

small caps works with xelatex again.

This also stops lualatex from producing an error, but the resulting document does not contain small caps.

morberg avatar Mar 18 '21 11:03 morberg