[tex-live] Font features linked with fontspec-preparse-external apparently broken in fontspec

Akira Kakuto kakuto at fuk.kindai.ac.jp
Wed Oct 15 01:21:41 CEST 2014


Dear Bruno Voisin,

> The following issue comes from the Lucida list, in relation to the creation of .
> fontspec config files for loading the fonts by file name without having to
> tediously specify each time the file names of the bold, italic and bold italic fonts.

Maybe a solution is:

\documentclass[12pt]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{fontspec}
\setlength{\parindent}{0pt}
\setmainfont[Color=Blue,%
BoldFont={[texgyreadventor-bold.otf]},%
ItalicFont={[texgyreadventor-italic.otf]},%
BoldItalicFont={[texgyreadventor-bolditalic.otf]}]%
{[texgyreadventor-regular.otf]}
\begin{document}
Roman text.\par
\textbf{Bold text}\par
\textit{Italic text.}\par
\textbf{\textit{Bold italic text.}}
\end{document}

If you use a font name, it is simpler:

\documentclass[12pt]{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{fontspec}
\setlength{\parindent}{0pt}
\setmainfont[Color=Blue]{TeX Gyre Adventor}
\begin{document}
Roman text.\par
\textbf{Bold text}\par
\textit{Italic text.}\par
\textbf{\textit{Bold italic text.}}
\end{document}

Best,
Akira



More information about the tex-live mailing list