Movatterモバイル変換


[0]ホーム

URL:


Skip to content
Experimental WebAPI
GitHub

CSSFontLoadingAPI

Types

fontDisplay

typefontDisplay=
| @as("auto")Auto
| @as("block")Block
| @as("fallback")Fallback
| @as("optional")Optional
| @as("swap")Swap

fontFace

typefontFace= {
mutablefamily:string,
mutablestyle:string,
mutableweight:string,
mutablestretch:string,
mutableunicodeRange:string,
mutablefeatureSettings:string,
mutabledisplay:fontDisplay,
mutableascentOverride:string,
mutabledescentOverride:string,
mutablelineGapOverride:string,
status:fontFaceLoadStatus,
loaded:promise<fontFace>,
}

Record fields

family
string
style
string
weight
string
stretch
string
unicodeRange
string
featureSettings
string
ascentOverride
string
descentOverride
string
lineGapOverride
string
loaded
promise<fontFace >

Module

There are methods and helpers defined in FontFace.

fontFaceDescriptors

typefontFaceDescriptors= {
mutablestyle?:string,
mutableweight?:string,
mutablestretch?:string,
mutableunicodeRange?:string,
mutablefeatureSettings?:string,
mutabledisplay?:fontDisplay,
mutableascentOverride?:string,
mutabledescentOverride?:string,
mutablelineGapOverride?:string,
}

Record fields

style
option< string >
weight
option< string >
stretch
option< string >
unicodeRange
option< string >
featureSettings
option< string >
display
option<fontDisplay >
ascentOverride
option< string >
descentOverride
option< string >
lineGapOverride
option< string >

fontFaceLoadStatus

typefontFaceLoadStatus=
| @as("error")Error
| @as("loaded")Loaded
| @as("loading")Loading
| @as("unloaded")Unloaded

fontFaceSet

typefontFaceSet= {
ready:promise<fontFaceSet>,
status:fontFaceSetLoadStatus,
}

Record fields

Module

There are methods and helpers defined in FontFaceSet.

fontFaceSetLoadStatus

typefontFaceSetLoadStatus=
| @as("loaded")Loaded
| @as("loading")Loading

[8]ページ先頭

©2009-2025 Movatter.jp