Information from and further information available from the links below
The load() method is font-face , which looks like this:
interface FontFace { attribute DOMString family; attribute DOMString style; attribute DOMString weight; attribute DOMString stretch; attribute DOMString unicodeRange; attribute DOMString variant; attribute DOMString featureSettings; readonly attribute FontFaceLoadStatus status; Promise<FontFace> load(); readonly attribute Promise<FontFace> loaded; };
identifies src as a slot. The src descriptor is required for the @font-face rule to conform to the specification. The purpose of this is to determine the separation of resources, while the subsequent url value actually determines the location of the external resource that contains font files or glyphs.
In particular..
The internal [[Urls]] slot of the FontFace object is set to the value of the src descriptor @ font-face and reflects any changes made to the src descriptor.
βΊ CSS Font Download Module Level 3 (s.2.3)
The load () method of FontFace uses Cetch-enabled fetch to read the font data specified in the font files. For fonts built from binary data or fonts that are already loading or loading, it does nothing.
When the render client reads the font code, iterates over the src links until it finds one that it can successfully execute. Subsequent values ββare then not processed.
For simplicity, you can compare the ratio of src and url with the ratio of an array of key values.
The correct syntax for src is
<url> [format(<string> #)]? | <font-face-name> ] #
Further:
source share