Duolith docs

Errors E0400 to E0499

E0454 Two fonts for one face, or one name for two fonts

Message what would never be drawn: 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 each @font-face's file in the app and lists it under its family, weight and style. Two files for one family, weight and style would leave one of them never drawn, and two files whose paths differ only by a / where the other has a _ would ship under one name, one overwriting the other. Either would drop a font without a word, so the native build stops. The same file declared twice, in two style blocks, is one font and is fine.

How to fix it

Give each family, weight and style one file, and rename files whose paths would ship as one name.

In a terminal

duolith explain E0454

Mentioned in