Reference · The realistic Earth's pure parts
setBodyLabelFontUrlfunction
Where Michroma, the family's font for the name, is fetched from. Left alone it is the file beside the label's own module (fonts/Michroma-Regular.ttf in kazoku-ui's body-label), which is right where the package is used as it is shipped, or through a
bundler that keeps assets beside the code (Vite does); a bundler or a site that moves the module copies the file and says where with this. A page that names its own font (body-label-font) never fetches it.
Import it
import { setBodyLabelFontUrl } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function setBodyLabelFontUrl(url: string | undefined): void
Parameters
| Name | Type | Description |
|---|---|---|
url | string | undefined | The font file's address, or |
Examples
import { setBodyLabelFontUrl } from "@johnmorrisdotca/chikyu-earth/realistic";
setBodyLabelFontUrl("/fonts/Michroma-Regular.ttf");