[lucida] Lucida OpenType installation problem

Bruno Voisin bvoisin at icloud.com
Tue Oct 14 18:25:02 CEST 2014


> Le 14 oct. 2014 à 14:04, Bruno Voisin <bvoisin at icloud.com> a écrit :
> 
> After more tests, I have the impression it is the fontspec implementation of .fontspec config files that is broken.

Nope, after quite some testing it seems to be the BoldFont etc. keys that are broken.

Take the following minimal file:

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

This typesets fine, and in blue as expected, except for the absence of bold and italic. Uncomment the line specifying the bold font, you'll get

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
./Last-Test.tex:11: LaTeX error: "kernel/key-unknown"
! 
! The key 'fontspec/BoldFont' is unknown and is being ignored.
! 
! See the LaTeX3 documentation for further information.
! 
! For immediate help type H <return>.
!............................................... 

Searching fontspec-{luatex,xetex}.sty, it turns out the two keys are implemented in different ways:

\__fontspec_keys_define_code:nnn {fontspec-preparse-external} {BoldFont}

\__fontspec_keys_define_code:nnn {fontspec} {Color}

This might indicate there is something wrong with fontspec-preparse-external.

I will try to look for a mailing list where fontspec issues can be reported, since this is clearly not a Lucida-specific problem.

Bruno


More information about the lucida mailing list