Skip to main content

WEBFONT_MONO_FILE

Constant WEBFONT_MONO_FILE 

Source
pub const WEBFONT_MONO_FILE: &str = "QuasiMono.woff2";
Expand description

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.