本文へ移動

Chikyu Earth地球

世界の国の輪郭を線で描いた地球儀です。地球と同じ速さで回ります。宇宙から見たような地球と、好きな場所の目印も使えます。

「地球」(ちきゅう) は、私たちが住む星の名前です。 名前について(英語)

目次

リファレンス · リアルな地球の計算部分

setBodyLabelFontUrl関数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

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 { setBodyLabelFontUrl } from "@johnmorrisdotca/chikyu-earth/realistic";

定義

function setBodyLabelFontUrl(url: string | undefined): void

引数

名前型説明
urlstring | undefined

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

例

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

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

ソースを見るGitHub で編集@johnmorrisdotca/chikyu-earth 0.51.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。