font will not display bold in lualatex

Haines Brown haines at histomat.net
Wed Dec 7 13:22:46 CET 2022


On Tue, Dec 06, 2022 at 05:33:55PM +0100, Herbert Voss wrote:
> 
> 
> 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

Herbert, thanks, that fixed the problem. 

-- 

     Haines Brown 
 /"\
 \ /  ASCII Ribbon Campaign
  X    against HTML e-mail 
 / \



More information about the texhax mailing list.