module Types = CSSFontLoadingTypes type t = Types.fontFace = {...Types.fontFace} type fontDisplay = Types.fontDisplay type fontFaceLoadStatus = Types.fontFaceLoadStatus type fontFaceDescriptors = Types.fontFaceDescriptors = {...Types.fontFaceDescriptors} /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) */ @new external make: (~family: string, ~source: string, ~descriptors: fontFaceDescriptors=?) => t = "FontFace" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) */ @new external fromDataView: ( ~family: string, ~source: DataView.t, ~descriptors: fontFaceDescriptors=?, ) => t = "FontFace" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace) */ @new external fromArrayBuffer: ( ~family: string, ~source: ArrayBuffer.t, ~descriptors: fontFaceDescriptors=?, ) => t = "FontFace" /** [Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFace/load) */ @send external load: t => promise = "load"