[dev-context] Typo in generic fontloader code for SVG

Hans Hagen j.hagen at xs4all.nl
Wed Sep 11 15:21:17 CEST 2019

On 9/11/2019 12:00 PM, Marcel Fabian Kr├╝ger wrote:
> Hi,
> in font-ocl.lua, inkscape is called to convert SVG table entries to PDF.
> This also has a "poor mans variant for generic" around line 464 which is
> probably supposed to call io.popen, but calls io.open instead. Of course
> this breaks the conversion  and leads to the creation of a weird file.
> (See https://github.com/latex3/luaotfload/issues/96 for details)
> Maybe this can be fixed to use `io.popen`?


> There is also a harder to fix issue: Currently the code tries to do the
> SVG to PDF conversion when caching the font. Especially when
> shell-escape is disabled, this fails. Now the problem is that in this
> case rerunning the commands with shell-escape enabled doesn't help
> because the (empty) cached entries are used. Could you add some logic to
> try to recreate the cache if the existing PDF cache for a font is empty?
i'll see


                                           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 dev-context mailing list