On Mon, 14 Dec 2020 at 16:10, Apostolos Syropoulos via XeTeX <xetex@tug.org> wrote:
> >Works for me, Ulrike : > > > > > > \font \Jost = "Jost*" > > \Jost Hallo > > > > \end > > > > > >Of course, one has to install the font in the first place. > > The above code works just fine in Solaris. > A.S. > > ---------------------- > Apostolos Syropoulos > Xanthi, Greece > > > For me (testing on cygwin and installing the fonts in ~/.fonts) the Phil's plain tex example works but I think it is somewhat underspecified which font you actually get (I got Jost-Black which is a bit.. black...) $ pdffonts phil.pdf name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- HMHLTQ+Jost-Black CID TrueType Identity-H yes yes yes 5 0 JRRHPJ+CMR10 Type 1C Builtin yes yes yes 6 0 fontspec does get confused by the * (probably while trying to figure out the bold/italic etc variants of the main font) and I get the ! Package fontspec Error: The font "JostJost*" cannot be found. error Which is arguably a fontspec bug but since the "main" font is of a rather arbitrary weight if loaded as Jost* it is probably better to specify the weights as in Ulrike's example anyway. I did try to avoid the wildcard using a catcode 11 *, interestingly that gives a different error, so gets closer but doesn't actually work (for some definition of "interesting") \documentclass{article} \usepackage{fontspec} \setmainfont{Jost\Ucharcat`\* 11 } \begin{document} Hallo \end{document}