-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathFontFaceSet.res
36 lines (30 loc) · 911 Bytes
/
FontFaceSet.res
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
open EventAPI
open CSSFontLoadingAPI
include EventTarget.Impl({
type t = fontFaceSet
})
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/add)
*/
@send
external add: (fontFaceSet, fontFace) => fontFaceSet = "add"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/delete)
*/
@send
external delete: (fontFaceSet, fontFace) => bool = "delete"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/clear)
*/
@send
external clear: fontFaceSet => unit = "clear"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/load)
*/
@send
external load: (fontFaceSet, ~font: string, ~text: string=?) => Promise.t<array<fontFace>> = "load"
/**
[Read more on MDN](https://developer.mozilla.org/docs/Web/API/FontFaceSet/check)
*/
@send
external check: (fontFaceSet, ~font: string, ~text: string=?) => bool = "check"