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
引数
| 名前 | 型 | 説明 |
|---|---|---|
url | string | undefined | The font file's address, or |
例
import { setBodyLabelFontUrl } from "@johnmorrisdotca/chikyu-earth/realistic";
setBodyLabelFontUrl("/fonts/Michroma-Regular.ttf");この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。