As you know, the code like \sffamily{\bfseries{...}} gives bold and serif font at once. If to use fontspec (luatexja-fontspec in my case) it is not enough just to define bold and sans serif fonts. If try \sffamily{\bfseries{...}}, you'll get the next message.

enter image description here

How to define bold sans serif font?

The MWE is ...


\setmainjfont[BoldFont=HGMinchoB]{MS Mincho}
\setsansjfont{MS Gothic}

\setmainfont[Ligatures=TeX]{TeX Gyre Pagella}
\setsansfont[Ligatures=TeX,Scale=MatchLowercase]{TeX Gyre Heros}


  \item \textbf{\textsf{試験}}
  \item \textbf{\textsf{Test}}


closed as unclear what you're asking by TeXnician, Stefan Pinnow, Zarko, Bobyandbob, siracusa Sep 30 '18 at 19:45

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    Does MS Gothic have such a font? Please check that at first! Sounds like it hasn't. And please minimize your code to one word. Does a standard documentclass like article produce the same error? There are lots of things which distract from the actual problem here. – LaRiFaRi Nov 3 '14 at 11:30
  • 2
    \textsf{} gives sans serif, not serif. – Thérèse Nov 3 '14 at 11:31
  • 1
    LaRiFaRi, 1) How I can check it? 2) OK, the MWE has beed updated 3) Yes, same error it article (updated MWE is article) – Gurebu Bokofu Nov 3 '14 at 11:44
  • @GurebuBokofu Thanks. But still too many fonts loaded here in order to show what you want. I do not know what sans serif kanji would look like. Kick everything out! Or do you have problems with MS Mincho as well? Regarding your question: You will have to google that information or you take a look in your font files by double clicking on them. As it is not my software, I dare to promote xiles.net/nexusfont – LaRiFaRi Nov 3 '14 at 12:06
  • \sffamily also gives sans serif, not serif, and it does not take an argument. – Thérèse Nov 3 '14 at 15:28

Browse other questions tagged or ask your own question.