Skip to content

FontFace

Values

load

let load: WebAPI.CSSFontLoadingAPI.fontFace => Promise.t<
WebAPI.CSSFontLoadingAPI.fontFace,
>

make

let make: (
~family: string,
~source: string,
~descriptors: WebAPI.CSSFontLoadingAPI.fontFaceDescriptors=?,
) => WebAPI.CSSFontLoadingAPI.fontFace

make2

let make2: (
~family: string,
~source: DataView.t,
~descriptors: WebAPI.CSSFontLoadingAPI.fontFaceDescriptors=?,
) => WebAPI.CSSFontLoadingAPI.fontFace

Parameters

string DataView.t option< WebAPI.CSSFontLoadingAPI.fontFaceDescriptors >

Return type

WebAPI.CSSFontLoadingAPI.fontFace

make3

let make3: (
~family: string,
~source: ArrayBuffer.t,
~descriptors: WebAPI.CSSFontLoadingAPI.fontFaceDescriptors=?,
) => WebAPI.CSSFontLoadingAPI.fontFace

Parameters

string ArrayBuffer.t option< WebAPI.CSSFontLoadingAPI.fontFaceDescriptors >

Return type

WebAPI.CSSFontLoadingAPI.fontFace