Module fontface
What document.fonts.add(new FontFace(...)) puts in force: a rule of its own for the document's fonts (src/page/fonts.odin), in
no style sheet a script can see. The objects are native/js/odin/web_fontface.js.
Exposed to: Window. Source: api/fontface.widl.
Odin: import "wren:fontface".
Functions
FontFace_addRule
i32 FontFace_addRule(string rule)The @font-face rule, in force: a number for FontFace_removeRule, -1 when there is no document to style.
Odin: fontface.addRule.
Host: FontFace_addRule :: proc(c: ^Call, rule: string) -> i32
FontFace_removeRule
void FontFace_removeRule(i32 id)Odin: fontface.removeRule.
Host: FontFace_removeRule :: proc(c: ^Call, id: i32)