8

I have the bold font installed:

fc-list | grep CMU | grep Sans | grep Bold
/usr/share/fonts/truetype/cmu/cmunso.ttf: CMU Sans Serif:style=BoldOblique
/usr/share/fonts/truetype/cmu/cmunsx.ttf: CMU Sans Serif:style=Bold

But I do not know how to select it.

This throws an error:

\font\tenbf="CMU Sans Serif Bold" at 14pt

Font \tenbf="CMU Sans Serif Bold" at 14.0pt not loadable: Metric (TFM) file or installed font not found.

And this does not throw an error, but the result is not bold:

\font\tenbf="CMU Sans Serif:style=Bold" at 14pt

How to select the bold font?

0

1 Answer 1

7

You add the /B selector.

\font\tenbf="CMU Sans Serif/B"
\tenbf ABC
\bye

The font selector can be I, B or BI.

You find the documentation with texdoc xetex, section 1.

1
  • @ceving Added the info
    – egreg
    Commented Apr 15, 2019 at 7:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .