diff options
Diffstat (limited to 'vendor/web-sys/webidls/unstable/LocalFontAccess.webidl')
-rw-r--r-- | vendor/web-sys/webidls/unstable/LocalFontAccess.webidl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/web-sys/webidls/unstable/LocalFontAccess.webidl b/vendor/web-sys/webidls/unstable/LocalFontAccess.webidl new file mode 100644 index 000000000..d6d6d3b22 --- /dev/null +++ b/vendor/web-sys/webidls/unstable/LocalFontAccess.webidl @@ -0,0 +1,20 @@ +[SecureContext] +partial interface Window { + [Throws] + Promise<sequence<FontData>> queryLocalFonts(optional QueryOptions options = {}); +}; + +dictionary QueryOptions { + sequence<DOMString> postscriptNames; +}; + +[Exposed=Window] +interface FontData { + Promise<Blob> blob(); + + // Names + readonly attribute USVString postscriptName; + readonly attribute USVString fullName; + readonly attribute USVString family; + readonly attribute USVString style; +}; |