Patrick,


Thanks for the confirmation that something like:



xxx = fonts.definers.read("drm10.otf:mode=base;liga=false;kern=false;", 
tex.sp("10pt"))
x = font.define(xxx)


is a reasonable approach.  I should have been more clear, (and I do want to 
stay exclusively on the Lua side) but the failure of



font.getfont(x)



and the success of



font.fonts[x]



led me to think I might be missing something.  This behaviour still seems odd 
to me. Why the difference?



I suppose as long as I have a working system, it is not that important though.



Thanks,

Robert




On February 23, 2021 at 1:08 AM, Patrick Gundlach <[email protected]> wrote:


Hello Robert,

I am unsure what you want to do, stay on the Lua side or use the TeX side to 
define fonts?

I define the fonts on the Lua side by creating a font table then use

local num = font.define(newfont)

where newfont is the font table (6.1 in the manual)

Patrick



Reply via email to