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

Bruno Voisin bruno.voisin at legi.cnrs.fr
Wed Oct 15 13:12:58 CEST 2014


Dear Akira, dear Ulrike,

Thanks for your efforts and analyses (I'm only seeing your last messages now, on the list archive, I'm not a list member hence only got the earlier messages cc'ed directly to me).

You're quite right, in all respects:

(1) The following works

\defaultfontfeatures[myfont]
{
  Extension=.otf,
  Color=Blue,
  UprightFont=texgyreadventor-regular,
  BoldFont=texgyreadventor-bold,
  ItalicFont=texgyreadventor-italic,
  BoldItalicFont=texgyreadventor-bolditalic
}
\setmainfont{myfont}

as does

\defaultfontfeatures[\rmfamily]
{
  Extension=.otf,
  Color=Blue,
  BoldFont=texgyreadventor-bold,
  ItalicFont=texgyreadventor-italic,
  BoldItalicFont=texgyreadventor-bolditalic
}
\setmainfont{texgyreadventor-regular}

(2) But when the custom font name or alias is the actual filename, then fontspec gets confused and you need to use explicit brackets to have fontspec interpret the specified UprightFont etc. as filenames not occurrences of the alias. This gives

\defaultfontfeatures[texgyreadventor-regular]
{
  Color=Blue,
  UprightFont=[texgyreadventor-regular],
  BoldFont=[texgyreadventor-bold],
  ItalicFont=[texgyreadventor-italic],
  BoldItalicFont=[texgyreadventor-bolditalic]
}
\setmainfont{texgyreadventor-regular}

which works on my setup (BTW, all those tests were done on the Mac).

Thanks again for your input, it's been of great help, I was getting mad with this problem. The message I finally posted to the Lucida list is

http://tug.org/pipermail/lucida/2014-October/000599.html

Bruno


More information about the tex-live mailing list