1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include
"nsISupports.idl"
7 interface nsIDOMCSSFontFaceRule
;
8 interface nsIDOMCSSStyleDeclaration
;
10 [scriptable
, uuid(9a3b1272
-6585-4f41
-b08f
-fdc5da444cd0
)]
11 interface nsIDOMFontFace
: nsISupports
13 // An indication of how we found this font during font-matching.
14 // Note that the same physical font may have been found in multiple ways within a range.
15 readonly attribute
boolean fromFontGroup
;
16 readonly attribute
boolean fromLanguagePrefs
;
17 readonly attribute
boolean fromSystemFallback
;
19 // available for all fonts
20 readonly attribute DOMString name
; // full font name as obtained from the font resource
21 readonly attribute DOMString CSSFamilyName
; // a family name that could be used in CSS font-family
22 // (not necessarily the actual name that was used,
23 // due to aliases, generics, localized names, etc)
25 // meaningful only when the font is a user font defined using @font-face
26 readonly attribute nsIDOMCSSFontFaceRule rule
; // null if no associated @font-face rule
27 readonly attribute
long srcIndex
; // index in the rule's src list, -1 if no @font-face rule
28 readonly attribute DOMString URI
; // null if not a downloaded font, i.e. local
29 readonly attribute DOMString localName
; // null if not a src:local(...) rule
30 readonly attribute DOMString format
; // as per http://www.w3.org/TR/css3-webfonts/#referencing
31 readonly attribute DOMString metadata
; // XML metadata from WOFF file (if any)