[luatex] Loading Type 1 fonts

Patrick Gundlach patrick at gundla.ch
Mon Oct 9 08:55:31 CEST 2017


Hello David,


> 1)  opening the PFB with fontloader.open
> 2)  adding metrics with fontloader.apply_afmfile on the font file handle
> 3)  populating a table suitable for TeX (font.define)
> 

1: correct
2: you don't need this. The font loader loads the afm file automatically. 
3: correct.

you have already linked to my github gist, here is another link with english comments

https://github.com/speedata/publisher/blob/develop/src/lua/fonts/fontloader.lua#L120

Although this is a very simple font loader, it is used in production. So I can assure, it works fine.


Patrick





More information about the luatex mailing list