midorable
    Preparing search index...

    フォント情報

    フォントのサポート状況や各パラメータの解釈方法はプラットフォームによって異なる。

    interface Font {
        family: string | string[];
        size: number;
        style?: "normal" | "italic" | "oblique";
        weight?: number | "normal" | "bold" | "bolder" | "lighter";
    }
    Index

    Properties

    family: string | string[]

    フォント名

    フォント名は配列でも指定できる。 配列で指定された場合、プラットフォームは、配列の先頭から順にフォントを検索し、最初に見つかったフォントを使用する。

    size: number

    フォントサイズ(ピクセル単位)

    style?: "normal" | "italic" | "oblique"

    フォントのスタイル

    weight?: number | "normal" | "bold" | "bolder" | "lighter"

    フォントの太さ