Skip to content

fontspec 2.9b mixes up extensions .ttf and .otf #514

@dflipo

Description

@dflipo

Description

LuaHBTeX, Version 1.18.0 compiles the following file as expected with fontspec 2.9a but version 2.9b fails with this error message:
Font \TU/MyLato(0)/m/n/10=[Lato-Regular.otf]:mode=node;script=latn;language=dflt;+tlig; at 10pt not loadable: metric data not found or bad.

Only small caps show up in the output, the regular text is "printed" in nullfont.

Check/indicate

Minimal example demonstrating the issue](url)

\documentclass{article}
\usepackage{fontspec}
\begin{filecontents}[overwrite]{MyLato.fontspec}
\defaultfontfeatures[MyLato]
  {
  UprightFont       = Lato-Regular.ttf ,
  UprightFeatures   = {SmallCapsFont={FiraSans-Regular.otf}} ,
  SmallCapsFeatures = {Letters=SmallCaps} ,
 }
\end{filecontents}
\setmainfont{MyLato}
\begin{document}
Some text \textsc{and SmallCaps}.
\end{document}

Further details

Both fonts Lato-Regular.ttf and FiraSans-Regular.otf are available in TL2024, no Lato-Regular.otf on my system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions