有没有办法将 Gentium 字体与西里尔文一起使用?
我尝试过这样:
% !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}
但在这种情况下我没有勇气:
再试一次:
% !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}
所以现在我有了粗体版本的字体,但是 cyrillc 不起作用:
答案1
目前发布的 Gentium 字体没有粗体版本。Gentium Basic 字体没有西里尔文,所以你无计可施。
不过,你可以伪造粗体字。
\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}
对于非常有限的粗体使用,这可能被视为可以接受。