Using a truetype font in a lualatex

Herbert Voss Herbert.Voss at fu-berlin.de
Sun Jul 10 21:30:31 CEST 2022



Am 10.07.22 um 19:53 schrieb Haines Brown:
> I'm a long time user of latex and need to construct a docuemnt with
> lualatex. However I'm having a problem using a true type font.

use the already installed open type version of the LM fonts:

\documentclass[12pt]{article}
\usepackage{libertinus}
\newfontface\Dunhill{latinmodernromandunhill}[
     BoldFont           = lmromandunh10-regular.otf,
     BoldFeatures       = {FakeBold=3},
     ItalicFont         = lmromandunh10-oblique.otf,
     BoldItalicFont     = lmromandunh10-oblique.otf,
     BoldItalicFeatures = {FakeBold=3}
]
\begin{document}

Libertinus

\Dunhill Dunhill
\bfseries Dunhill
\mdseries
\itshape Dunhill
\bfseries Dunhill

\end{document}


Herbert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto 2022-07-10 um 21.28.29.png
Type: image/png
Size: 20797 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-live/attachments/20220710/a3c8b984/attachment-0001.png>


More information about the tex-live mailing list.