Duolith docs

Errors E0400 to E0499

E0457 Font file that is not a font

Message path cannot be shipped as a font: reason

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

The native build reads each font file before it copies it into the iOS and Android apps. A file that is not a TrueType or OpenType font, such as a WOFF2 file renamed .ttf, a font collection (.ttc), a page a download saved instead of the font, or a file cut short, would fail to register on the phone and leave the text in the system font, so the build stops.

How to fix it

Name a TrueType (.ttf) or OpenType (.otf) file, one face per file.

In a terminal

duolith explain E0457

Mentioned in