Js_of_ocaml.FontFaceCSS Font Loading API binding.
This is a partial binding to the CSS Font Loading API.
class type fontFace = object ... endclass type fontFaceSet = object ... endis_supported () is true if the FontFace constructor of the CSS Font Loading API is available in the current environment.
val create : Js.js_string Js.t -> Js.js_string Js.t -> fontFace Js.tcreate family source wraps new FontFace(family, source), where source is a CSS src descriptor string (e.g. "url(font.woff2)").
val create_from_buffer :
Js.js_string Js.t ->
Typed_array.arrayBuffer Js.t ->
fontFace Js.tcreate_from_buffer family data wraps new FontFace(family, data) with the font's binary data as data, for fonts loaded from raw bytes.