Skip to content

Crash when generating OTC #4417

@WolfGangsta

Description

@WolfGangsta

I'm trying to use FontForge's font collection generation capability to make an OpenType Collection out of a set of OTF files, as mentioned in #3543, but FontForge always fails, leaving only an empty (0 bytes) file in the target directory with the name I wanted to give it (emmentaler.otc).

When I try to run the Python generateTtc function on the files with the "cff" and "merge" ttcflags set, execution stops almost immediately. This was tested on Windows 10 (with FF 20190801) via FontForge interactive console and on LilyDev 2, a fork of Debian (with FF 20170812), via regular bash. On LilyDev, the crash is reported as a segfault, while no error message appears on Windows.

When I use the "Generate TTC..." GUI dialog (again, with the "Merge tables across fonts" and "As CFF fonts" options checked), FF exits immediately, having hit, I presume, the same segfault. I tested the GUI on both Windows and LilyDev, same as above.

The issue is present even when only attempting to merge two of the eight fonts, so I'm attaching a couple of the fonts that fail the merge, along with a stripped-down version of the generation script that still demonstrates the crash: emmentaler.zip

(N.B. The files are a WIP version of Emmentaler, the standard music font for GNU LilyPond, so there's no issue with them going public. Also, since it's a music font, most of the glyphs reside in the PUA after 0xE000.)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions