[lltx] luaotfload: Adjusting OpenType math parameters
phg at phi-gamma.net
Tue Jul 19 23:09:04 CEST 2016
···<date: 2016-07-19, Tuesday>···<from: Graham Douglas>···
> I'm just starting to explore LuaTeX's OpenType math typesetting
> capabilities and would like to adjust some of the OpenType parameter
> values to fine-tune some spacing. Just out of curiosity I wrote a tiny
> aux library function so that I can explore the values (details below if
> anyone interested).
> My question is, what is the safest or "official" way via luaotfload to
> make adjustments to OpenType math parameters which will minimize risk of
> breaking something?
as you already discovered in the other mail, the “patch_font”
callback is the way to go.
> --- aux function
> local get_identifiers = function ()
> return identifiers
That’s the table of fonts registered by the fontloader. With
Luaotfload the canonical way of accessing this table is via the
> In the TeX document, then loop over "identifiers" to dump out the values
> of the mathparameters and MathConstants tables
For printing values it’s much easier to just use the built-in
function (fontdata) inspect (fontdata.MathConstants) end,
\font \mainfont = file:cambria.ttc(1)
\mainfont foo \bye
Fwiw the “patch_font” callback is mentioned briefly in the
manual, ch. 9.1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 819 bytes
Desc: not available
More information about the lualatex-dev