TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Consider the following MWE:

some ordinary text\newline
{\sffamily some sans-serif text}\newline
{\ttfamily some monospaced text}

On a MacBook running MacTeX2012 and MacOSX 10.7.5, this MWE produces the following output when run under LuaLaTeX:

enter image description here

but the following (and rather more pleasing) output when run under XeLaTeX:

enter image description here

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.

share|improve this question
It seems a problem specific to Junicode; with other main fonts it doesn't happen. – egreg Oct 10 '12 at 19:45
Confirmed with MiKTeX 2.9, and agree with @egreg. This should probably go on sourceforge.net/projects/junicode . – doncherry Oct 10 '12 at 19:57
There were a similar (or actually the same?) issue with Linux Libertine mentioned here on TeX.sx, but I can’t find it now. If I rememeber correctly, Luatex relies on what is indicated by the font, XeTeX computes the x-height itself. – Speravir Oct 10 '12 at 20:21
It could be this one: TeX logo with LuaTeX and Linux Biolinum O/G. – Speravir Oct 10 '12 at 20:25
@doncherry - I've submitted a bug report to the site you listed. – Mico Oct 10 '12 at 20:59
up vote 5 down vote accepted

FontForge has obviously some difficulties to export fonts with "correct" x-height set to be usable with luaotfload. So I'd say it is both a bug in FontForge and luaotfload and it should be fixed in both.

share|improve this answer
According to Khaled's comment, this bug doesn't occur anymore in the latest Fontforge. A fixed version of Junicode will be on its way soon. – doncherry Oct 13 '12 at 21:33

Version 0.7.7 of Junicode released today (2012-11-17) fixes this problem. Go to http://junicode.sf.net.

share|improve this answer
Welcome to tex.sx! It's great to see another creator of an amazing resource here! – doncherry Nov 17 '12 at 19:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.