[luatex] finding pk fonts with kpse

Taco Hoekwater taco at elvenkind.com
Wed May 19 20:47:20 CEST 2010


Elie Roux wrote:
> Hello,
> 
> I have trouble finding pk fonts with the LuaTeX's kpse library (I'm 
> using latest trunk). When I execute testinitas.lua (attached) with the 
> (attached) yinitas.600pk in 
> /home/eroux/.texmf-var/fonts/pk/ljfour/public/gothic/yinitas.600pk I get:
> 
> eroux at norgz-laptop:~/booklets/newbenedictiones$ texlua testinitas.lua
> kpse.find_file('yinitas', 'pk') failed
> kpse.find_file('yinitas', 'pk', 600) failed
> kpse.lookup('yinitas', {format='pk'}) failed
> 'kpsewhich -format pk yinitas' says:
> /home/eroux/.texmf-var/fonts/pk/ljfour/public/gothic/yinitas.600pk
> 
> So, I don't really know how to find the font. Can someone help me?

You need to run kpse.init_prog(), for instance like this:

   kpse.set_program_name("luatex")
   kpse.init_prog('', 600, 'ljfour')

(and the requested pk size is mandatory for kpse.find_file because I
didn't see the point in a default at that moment)

Best wishes,
Taco



More information about the luatex mailing list