[luatex] Expanded fonts

Javier Bezos listas at tex-tipografia.com
Mon Jun 30 19:00:33 CEST 2014


Hi all,

I need to expand slightly an OTF, but I haven't managed to do it.
What I've done until now is:

local factor = 1.3 -- large, just to see it

local i = font.id("testfont")
local f = font.getfont(i)

for n = 0x21, 0x7d do -- restricted range, as test
   f.characters[n].width = f.characters[n].width * factor
end

f.extend = 1000 * factor

font.setfont(i, f)

So far so good, but of course kerning is, as you could expect, wrong,
and here I'm stuck. I have also to create somehow a new font (virtual
I presume). How to do both is my question.

Javier




More information about the luatex mailing list