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



Reply via email to