The type system shipped WITH every generated artifact instead of fetched.
Reports, annotated snapshots and presenter decks are artifacts: they get
zipped, emailed, opened offline, attached to a CI run and re-read years
later. A fonts.googleapis.com link makes their typography — and therefore
their layout — decay outside the network they were generated on, and it
leaks a request to a third party every time someone opens one. So the faces
below live in resources/com/blockether/spel/fonts and are inlined into the
HTML as data: URIs.
Only the latin and latin-ext subsets of the variable (wght axis) fonts
are bundled — together ~189 KB of woff2, ~250 KB base64 — which covers every
character these documents emit while keeping the single-file artifact small.
Italics are synthesized. Both families are SIL OFL 1.1; LICENSE-Inter.txt
and LICENSE-JetBrainsMono.txt ship beside the files.
The type system shipped WITH every generated artifact instead of fetched. Reports, annotated snapshots and presenter decks are artifacts: they get zipped, emailed, opened offline, attached to a CI run and re-read years later. A `fonts.googleapis.com` link makes their typography — and therefore their layout — decay outside the network they were generated on, and it leaks a request to a third party every time someone opens one. So the faces below live in `resources/com/blockether/spel/fonts` and are inlined into the HTML as `data:` URIs. Only the `latin` and `latin-ext` subsets of the variable (wght axis) fonts are bundled — together ~189 KB of woff2, ~250 KB base64 — which covers every character these documents emit while keeping the single-file artifact small. Italics are synthesized. Both families are SIL OFL 1.1; LICENSE-Inter.txt and LICENSE-JetBrainsMono.txt ship beside the files.
Font stack for prose and UI chrome.
Font stack for prose and UI chrome.
@font-face block for the bundled faces, computed once per JVM.
`@font-face` block for the bundled faces, computed once per JVM.
Every bundled face: family, variable weight range, woff2 file, subset range.
Every bundled face: family, variable weight range, woff2 file, subset range.
(data-uri file)Base64 data: URI for a bundled woff2, or nil when the resource is absent.
Absence is tolerated (the CSS stack still falls back to system fonts)
rather than fatal, so a trimmed uberjar can never break artifact writing.
Base64 `data:` URI for a bundled woff2, or nil when the resource is absent. Absence is tolerated (the CSS stack still falls back to system fonts) rather than fatal, so a trimmed uberjar can never break artifact writing.
Font stack for code, captions and tabular data.
Font stack for code, captions and tabular data.
(style-tag)The bundled @font-face rules as a ready-to-embed <style> element.
The bundled `@font-face` rules as a ready-to-embed `<style>` element.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |