[luatex] Querying Script and ScriptScriptPercentScaleDown math constants

Khaled Hosny khaledhosny at eglug.org
Tue Jul 13 20:08:15 CEST 2010

On Tue, Jul 13, 2010 at 08:02:23PM +0200, taco wrote:
> Khaled Hosny wrote:
> >Is there a way to the values of ScriptPercentScaleDown and
> >ScriptScriptPercentScaleDown either from tex or from lua, other than
> >reading the MathConstants table directly?
> Not reliably, because LuaTeX itself does not actually use
> these parameters.
> You can get them directly from font.fonts[] if you know
> the right font id, but even then there is no guarantee
> that they contain the right values as no checks are done
> (and for example, in context mkiv, they are scaled
> to the font's load size, just like the other math parameters).

Yup, I know, that what I meant by "reading the MathConstants table
directly". I already did some basic check and I got the correct values
as I set in the font (luaotfload was scaling it to, but I now simply
don't scale any constant with "Percent" in its name).


 Khaled Hosny
 Arabic localiser and member of Arabeyes.org team
 Free font developer

More information about the luatex mailing list