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?

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.

  • @ceving Added the info – egreg Apr 15 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.