4

There is a way, to use Gentium font with cyrillic text?

I tried so:

% !TeX encoding = UTF-8
% !TeX TS-program = xelatex
\documentclass[12pt,a4paper]{article}

\usepackage{fontspec} % loaded by polyglossia, but included here for transparency 
\usepackage{polyglossia}
\setmainlanguage{russian} 
\setotherlanguage{english}
\newfontfamily\russianfont[Script=Cyrillic,]{Gentium}


\begin{document}
    Test, \textbf{test} 

    Тест, \textbf{тест}
\end{document}

but I have no bold in this case:

enter image description here

Another try:

% !TeX encoding = UTF-8
% !TeX TS-program = xelatex
\documentclass[12pt,a4paper]{article}

\usepackage{fontspec} % loaded by polyglossia, but included here for transparency 
\usepackage{polyglossia}
\setmainlanguage{russian} 
\setotherlanguage{english}
\newfontfamily\russianfont[Script=Cyrillic,BoldFont={Gentium Basic Bold}]{Gentium}


\begin{document}
    Test, \textbf{test} 

    Тест, \textbf{тест}
\end{document}

So now I have bold version of font, but cyrillc don't work:

enter image description here

1
  • Maybe Gentium does not have bold cyrillic. If you try another font and it works, it surely is an issue with Gentium. Use another font instead, if you really need bold faces.
    – user9424
    Commented Mar 14, 2015 at 23:33

1 Answer 1

6

The Gentium font, as currently distributed, has no boldface version. The Gentium Basic font has no Cyrillic, so you're stuck.

You can fake the boldface, though.

\documentclass[12pt,a4paper]{article}

\usepackage{fontspec} % loaded by polyglossia, but included here for transparency
\usepackage{polyglossia}
\setmainlanguage{russian}
\setotherlanguage{english}
\newfontfamily\russianfont[
  Script=Cyrillic,
  BoldFont={Gentium},
  BoldFeatures={FakeBold=4},
]{Gentium}


\begin{document}
    Test, \textbf{test}

    Тест, \textbf{тест}
\end{document}

enter image description here

For a very limited usage of boldface this may be regarded as acceptable.

2
  • Is it possible to make something like: if(containsCyrlillicCharacters()) use Gentium with FakeBold; else use normal Gentium in textbf() definition?
    – Max
    Commented Mar 17, 2015 at 1:26
  • @Stas Yes, if you mark the passages in English with \foreignlanguage or similar function.
    – egreg
    Commented Mar 17, 2015 at 9:49

You must log in to answer this question.

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