Skip to content

Tectonic doesn't support woff2 format fonts #1319

@sftse

Description

@sftse

I'm using the current 0.15.0 package from the Nix store and a document fails with

error: Cannot proceed without the font: /nix/store/k090.....montserrat-9.000/share/fonts/woff2/Montserrat-LightItalic.woff2

Looking at the offending function causing the error, the checks directly prior to the abort

if ((handle = dpx_open_dfont_file(filename)) != INVALID_HANDLE)
is_dfont = 1;
else if ((handle = dpx_open_type1_file(filename)) != INVALID_HANDLE)
is_type1 = 1;
else if (((handle = dpx_open_opentype_file(filename)) == INVALID_HANDLE
&& (handle = dpx_open_truetype_file(filename)) == INVALID_HANDLE)) {
_tt_abort("Cannot proceed without the font: %s", filename);
}

seem to hint at this function not expecting .woff2 paths to be passed to it?

The file does exist at the location.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions