font will not display bold in lualatex

Herbert Voss Herbert.Voss at fu-berlin.de
Tue Dec 6 17:33:55 CET 2022



Am 06.12.22 um 17:19 schrieb Haines Brown:
> I have a lualatex document, but am beginner with lualaTeX. In its
> preface I consruct a text block header, the first line of which
> should be bold:
>
>    \usepackage{libertinus}[
>      Scale=1.5
>      BoldFont           = lmromandunh10-regular.otf,
>      BoldFeatures       = {FakeBold=4}
>    ]

that is no valid code. Next time give complete examples and not only 
fragments.

\documentclass{article}

\usepackage{fontspec}
\usepackage{libertinus-otf}
\newfontface\Dunhill{latinmodernromandunhill}[FakeBold=4]
\usepackage[absolute]{textpos} % to create a block I can position absolutely

\setlength{\TPHorizModule}{10mm} % defines module
\setlength{\TPVertModule}{\TPHorizModule}
\textblockorigin{10mm}{10mm} % start everything near the top-left corner
\setlength{\parindent}{0pt}

\begin{document}

Then in body appears the header:

\begin{textblock}{5}(7.5,0.5)
\begin{center}
{\large \bfseries\Dunhill{Should be bold}}\\
Normal text
\end{center}
\end{textblock}

\end{document}



Herbert


More information about the texhax mailing list.