Duolith docs

Errors E0400 to E0499

E0450 Font a phone cannot load

Message this @font-face has no TrueType or OpenType file, which is all iOS and Android load

Why

A @font-face at the top of a style block is a font the app ships: the native build copies its file into the iOS and Android apps, and the shells register it before the first screen draws, so font-family and the theme's font.family find it. iOS and Android load TrueType (.ttf) and OpenType (.otf) files only. A @font-face whose every source is WOFF, WOFF2 or another format would leave the text in the system font without a word, so the native build stops.

How to fix it

Add a .ttf or .otf source beside the WOFF2 one, such as src: url("/fonts/inter.woff2") format("woff2"), url("/fonts/inter.ttf") format("truetype");

In a terminal

duolith explain E0450

Mentioned in