1

I am using the Junicode Two Beta VF typeface for my document. It comes with only two files, one for roman and one for italic. But if I run fc-list, I notice that the font includes a bold style through Junicode Two Beta VF:style=Bold. However, the fontspec package is looking for a bold font file, which I think is why the bold is not working.

\documentclass{article}

\usepackage{fontspec, lipsum}
\setmainfont{Junicode Two Beta VF}

\begin{document}
\bfseries\lipsum[1]
\end{document}

Is there a way for me to specify that the bold font should be the style=Bold version of the font?

2
  • Possibly section 2.2 of the fontspec doc has what you need.
    – user287367
    Feb 16, 2023 at 2:55
  • I don't think Section 2.2 has what I need because I want to select by style, not by file name.
    – Amarakon
    Feb 16, 2023 at 3:01

1 Answer 1

1

Since Junicode Two Beta VF is a variable font, the following solution worked for me.

\documentclass{article}

\usepackage{fontspec, lipsum}

\setmainfont[
    BoldFont = *,
    BoldFeatures={RawFeature={+axis={wght=600}}},
    BoldItalicFeatures={RawFeature={+axis={wght=600}}}
]{Junicode Two Beta VF}

\begin{document}
\bfseries\lipsum[1]
\end{document}

You must log in to answer this question.

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