[luatex] luatex - pdfmapline database

Hans Hagen pragma at wxs.nl
Sun Jul 17 10:48:23 CEST 2016

On 7/17/2016 1:30 AM, Pali Rohár wrote:
>>> In luatex documentation in section 12.1.1 are described lua
>>> functions pdf.mapfile() and pdf.mapline(), but those can be used
>>> only for filling pdfmapline database. Not for retrieving it or
>>> inspect it...
>> indeed, and there is no reason to consult them as map files/lines are
>> a resource managed in sync with fonts (and in a modern luatex font
>> setup  they are not even needed)
> I was thinking about choosing ENC file for 8bit PFB fonts from this
> database instead manually searching for correct ENC files... As now it
> is possible to use TFM+PFB+ENC fonts files via loader. And pdftex.map
> provides needed database for it.

that is something different ... mapfiles are explicitly loaded with 
\pdfmapfile or taken from an environment variable ... they kick in very 
late in the backend (finalizing document)

if you really want to do that you can write some lua code that looks at 
the relevant variable, and then parses the map file(s) it returns

(also, given the small amount of type one files that one would possibly 
want to load in a luatex setup one can as well make a dedicated database 
- or lua table - for it as it only involves a few files)

(and in the loader you probably can do without the enc esp for cs as 
it's one to one with the built-in default anyway)


                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
        tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

More information about the luatex mailing list