Skip to main content

WEBFONT_MONO_FILE

Constant WEBFONT_MONO_FILE 

Source
pub const WEBFONT_MONO_FILE: &'static str;
Expand description

The filenames typography_css’s @font-face rules fetch.

Re-exported for the same reason as Emit, and load-bearing for a further one: the consumer’s own build script writes those two files, so the emitter and the writer have to agree on the name. Through this they agree on a constant rather than on a string typed in two repositories. Filename a consumer writes the cut mono face to, under its own font URL.

quasi-type writes QuasiMono[wght].woff2, naming the variable axis the way a font tool expects. Those brackets have to be percent-encoded to survive a URL and are a bug waiting to be written, so the web copy takes a plain name and the two places that have to agree — the build script that writes the file and the @font-face that fetches it — agree through this constant rather than by both spelling it out.