oden/third-party/vendor/web-sys/webidls/unstable/LocalFontAccess.webidl
2024-03-08 11:03:01 -08:00

20 lines
452 B
Text

[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;
};