Re: [luatex] finish_pdffile callback

2018-02-09 Thread Hans Hagen
On 2/9/2018 3:44 AM, Br. Samuel Springuel wrote: I noticed in the docs that LuaTeX has a `finish_pdffile` callback whose short description is "Called when all pages have been written to the PDF file."  Does this mean that LuaTeX has closed the pdf file when this callback is executed (and thus

Re: [luatex] finish_pdffile callback

2018-02-09 Thread Hans Hagen
On 2/9/2018 3:25 PM, Knut Petersen wrote: Am 09.02.2018 um 15:07 schrieb Br. Samuel Springuel: I almost always use synctex, so that's a personal possibility, but I'm also programming for others who might not. What about the `stop_run` callback?  Are the files closed by the time the final

Re: [luatex] Font expansion and virtual fonts

2018-02-09 Thread Hans Hagen
On 2/9/2018 3:34 PM, Patrick Gundlach wrote: there is a test for the type being virtual .. can you omit that flag? just pretend it's a real font .. works here (i need to check why that test is there, it might not be needed in luatex any more) so no type="virtual" that was the culprit!

Re: [luatex] Font expansion and virtual fonts

2018-02-09 Thread Hans Hagen
On 2/9/2018 10:34 AM, Patrick Gundlach wrote: Hello all, I always come up with vague question, so here is another one. I use a virtual font to re-encode a real font and it seems that font expansion is not used anymore. Is this a well known thing? Both fonts (the real font and the virtual

Re: [luatex] finish_pdffile callback

2018-02-09 Thread Hans Hagen
On 2/9/2018 3:44 AM, Br. Samuel Springuel wrote: I noticed in the docs that LuaTeX has a `finish_pdffile` callback whose short description is "Called when all pages have been written to the PDF file."  Does this mean that LuaTeX has closed the pdf file when this callback is executed (and thus

Re: [luatex] Font expansion and virtual fonts

2018-02-09 Thread Patrick Gundlach
> Font expansion looks at a glyph and its properties. It actually is not > interested in what that glyph is and only the expansion factors and width > matters. ok, then I will reduce my Lua files to a minimal variant. I will probably find my problem then. Thank you! Patrick

Re: [luatex] finish_pdffile callback

2018-02-09 Thread Br. Samuel Springuel
I almost always use synctex, so that's a personal possibility, but I'm also programming for others who might not. What about the `stop_run` callback? Are the files closed by the time the final message is being spit out? -- ✝ Br. Samuel, OSB St. Anselm’s Abbey

Re: [luatex] finish_pdffile callback

2018-02-09 Thread Hans Hagen
On 2/9/2018 3:07 PM, Br. Samuel Springuel wrote: I almost always use synctex, so that's a personal possibility, but I'm also programming for others who might not. you can just use that callback ... (if needed turn on synctex with the synctex variable and turn if off afterwards) What about

Re: [luatex] finish_pdffile callback

2018-02-09 Thread Knut Petersen
Am 09.02.2018 um 15:07 schrieb Br. Samuel Springuel: I almost always use synctex, so that's a personal possibility, but I'm also programming for others who might not. What about the `stop_run` callback?  Are the files closed by the time the final message is being spit out? No, it is not.

Re: [luatex] Font expansion and virtual fonts

2018-02-09 Thread Hans Hagen
On 2/9/2018 2:17 PM, Patrick Gundlach wrote: some more details (before I make a test case) the glyphs of the real font have an expansion_factor of -1 (post_linebreak) and the virtual fonts have an expansion_factor of 0 (so the question is: why). The PDF also shows the expected