[lucida] Lucida OpenType installation problem

Bruno Voisin bvoisin at icloud.com
Tue Oct 14 14:04:07 CEST 2014


> Le 13 oct. 2014 à 23:24, Karl Berry <karl at freefriends.org> a écrit :
> 
> fontspec has been updated with the feature, thanks to Will R.  What's
> needed now is to make the necessary ".fontspec" support file for Lucida.

After more tests, I have the impression it is the fontspec implementation of .fontspec config files that is broken.

This, after uninstalling the Lucida OT fonts at the OS level, so that only those Lucida OT in my texmf-local tree are present. Then, after some trial-and-error, it seems the LaTeX 3 error message about keys unknown and ignored disappears when:

- The config file name is LucidaBrightOT.fontspec.

- The font is called through \setmainfont{LucidaBrightOT}.

- The config file content declares the font as \defaultfontfeatures[Lucida Bright OT] (ie, calling the font name, with the spaces, not the file name).

Then, if the config file contains

\defaultfontfeatures[Lucida Bright OT]
  {
   Extension = .otf ,
   UprightFont = LucidaBrightOT,
   BoldFont = LucidaBrightOT-Demi,
   ItalicFont = LucidaBrightOT-Italic,
   BoldItalicFont = LucidaBrightOT-DemiItalic
  }

there remains an error about the Extension key being unknown

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

But if the config file contains instead

\defaultfontfeatures[Lucida Bright OT]
  {
   UprightFont = LucidaBrightOT.otf,
   BoldFont = LucidaBrightOT-Demi.otf,
   ItalicFont = LucidaBrightOT-Italic.otf,
   BoldItalicFont = LucidaBrightOT-DemiItalic.otf
  }

then XeLaTeX calls mktextfm

kpathsea: Running mktextfm LucidaBrightOT

while LuaLaTeX reconstructs its font name database, and both end up complaining about not finding LucidaBrightOT.otf

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!
./lucidaot.tex:21: fontspec error: "font-not-found"
! 
! The font "LucidaBrightOT.otf" cannot be found.
! 
! See the fontspec documentation for further information.
! 
! For immediate help type H <return>.
!...............................................  

This, with the font correctly installed

eres3mcbv172:~ brunovoisin$ kpsewhich LucidaBrightOT.otf
/usr/local/texlive/texmf-local/fonts/opentype/bh/lucidaot/LucidaBrightOT.otf

and even after putting a copy of the font in the current directory, to be sure.

I cannot make sense out of all this.

Bruno


More information about the lucida mailing list