Consider the following MWE:
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Junicode}
\setsansfont[Scale=MatchLowercase]{HelveticaNeue}
\setmonofont[Scale=MatchLowercase]{Consolas}
\begin{document}
\noindent
some ordinary text\newline
{\sffamily some sans-serif text}\newline
{\ttfamily some monospaced text}
\end{document}
On a MacBook running MacTeX2012 and MacOSX 10.7.5, this MWE produces the following output when run under LuaLaTeX:
but the following (and rather more pleasing) output when run under XeLaTeX:
Obviously, something's not working quite right under LuaLaTeX. My question is: Is this a bug (a) caused by an error in implementing the Scale=MatchLowercase
option of fontspec/luatex, (b) caused by a poorly-specified parameter in the Junicode
font file, or (c) are there two separate bugs at work?
A work-around is to specify [Scale=0.83]
for HelveticaNeue
and [Scale=0.88]
for Consolas
. Naturally, though, I'd like to employ a somewhat more automated method to get the scaling of the sans and mono fonts adjusted to the size of the text font.