Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

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

NameTypeDescription
urlstring | undefined

The font file's address, or undefined for the default.

Examples

import { setBodyLabelFontUrl } from "@johnmorrisdotca/chikyu-earth/realistic";

setBodyLabelFontUrl("/fonts/Michroma-Regular.ttf");

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.