Hello!

I'm having trouble using the typeface Jost* [0] [1] with xelatex. My
impression is that the asterisk in the font name is the source of the
trouble, and this is a bug either in xelatex or in the font itself (in
cade it would be violating some standard for font names). However I am
not proficient in LaTeX at all (I only ever use it via pandoc or lyx)
and hence not very confident in my judgement of this being a bug.

I have tried installing the OTF version of Jost* [2] either into
/usr/share/fonts and $HOME/.local/share/fonts and run "sudo fc-cache".

When I try to compile a pdf using Jost* as main font (
\setmainfont[]{Jost*}), I get the following error:

   kpathsea:make_tex: Invalid filename
   `JostJost*/OT:script=latn;language=dflt;', contains '*'

   ! Package fontspec Error: The font "JostJost*" cannot be found.

An example .tex file is attached. It is not minimal because it was
generated by pandoc.

Any help or suggestions on where to properly report this are welcome

Carlos


[0] https://github.com/indestructible-type/Jost
[1] https://indestructibletype.com/Jost.html
[2] Select to donate zero dollars in order to download the free
version.
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
  ngerman,
]{scrartcl}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  \usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
  \usepackage{unicode-math}
  \defaultfontfeatures{Scale=MatchLowercase}
  \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1}
  \setmainfont[]{Jost*}
\fi
% Use upquote if available, for straight quotes in verbatim environments
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\IfFileExists{microtype.sty}{% use microtype if available
  \usepackage[]{microtype}
  \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
\makeatletter
\@ifundefined{KOMAClassName}{% if non-KOMA class
  \IfFileExists{parskip.sty}{%
    \usepackage{parskip}
  }{% else
    \setlength{\parindent}{0pt}
    \setlength{\parskip}{6pt plus 2pt minus 1pt}}
}{% if KOMA class
  \KOMAoptions{parskip=half}}
\makeatother
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
  pdftitle={Titel},
  pdflang={de-DE-1996},
  hidelinks,
  pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
\ifxetex
  % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
  \usepackage{polyglossia}
  \setmainlanguage[]{german}
\else
  \usepackage[shorthands=off,main=ngerman]{babel}
\fi

\title{Titel}
\author{}
\date{}

\begin{document}
\maketitle

Test.

\end{document}

Reply via email to