Skip to content

"error: font fallback list must not be empty" with Typst 0.14 #11238

@jvoisin

Description

@jvoisin

Typst 0.14, released today, doesn't work with pandoc:

$ pandoc --version
pandoc 3.8.2
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/jvoisin/.local/share/pandoc
Copyright (C) 2006-2025 John MacFarlane. Web:  https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.
$ lsb-release -a
LSB Version:	n/a
Distributor ID:	Fedora
Description:	Fedora Linux Asahi Remix 42 (Forty Two [Adams])
Release:	42
Codename:	adams
$ cat test.typ
= Hello world

This is a test.
$ pandoc -o output.pdf ./test.typ --pdf-engine=typst
error: font fallback list must not be empty
   ┌─ toPdfViaTempFile236506-0.typ:81:17

81 │            font: font,
   │                  ^^^^

help: error occurred in this call of function `conf`
    ┌─ toPdfViaTempFile236506-0.typ:146:14

146 │   #show: doc => conf(
    │ ╭───────────────^
147 │ │   abstract-title: [Abstract],
148 │ │   pagenumbering: "1",
149 │ │   cols: 1,
150 │ │   doc,
151 │ │ )
    │ ╰─^

Error producing PDF.

[43]
$

According to the changelog, the culprit is likely "An empty font list is not allowed anymore in text.font #6049 (Minor breaking change)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions