Duolith docs

Errors E0400 to E0499

E0451 Font the app cannot ship

Message this @font-face cannot be shipped in the app: 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 ships a @font-face's file inside the app, under the family the block names, so a phone never downloads a font while it draws. A block with no font-family could never be asked for, and a source that is not a file of the project's public folder, named from the root (url("/fonts/inter.ttf")), such as a font on another server or a local() font, cannot be put in the app. Either would leave the text in the system font, so the native build stops.

How to fix it

Name the family with font-family: "Name";, put the font file in public/, and name it from the root, such as url("/fonts/inter.ttf").

In a terminal

duolith explain E0451

Mentioned in