1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/inspector/nsIDOMFontFace.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "nsISupports.idl" 1.9 + 1.10 +interface nsIDOMCSSFontFaceRule; 1.11 +interface nsIDOMCSSStyleDeclaration; 1.12 + 1.13 +[scriptable, uuid(9a3b1272-6585-4f41-b08f-fdc5da444cd0)] 1.14 +interface nsIDOMFontFace : nsISupports 1.15 +{ 1.16 + // An indication of how we found this font during font-matching. 1.17 + // Note that the same physical font may have been found in multiple ways within a range. 1.18 + readonly attribute boolean fromFontGroup; 1.19 + readonly attribute boolean fromLanguagePrefs; 1.20 + readonly attribute boolean fromSystemFallback; 1.21 + 1.22 + // available for all fonts 1.23 + readonly attribute DOMString name; // full font name as obtained from the font resource 1.24 + readonly attribute DOMString CSSFamilyName; // a family name that could be used in CSS font-family 1.25 + // (not necessarily the actual name that was used, 1.26 + // due to aliases, generics, localized names, etc) 1.27 + 1.28 + // meaningful only when the font is a user font defined using @font-face 1.29 + readonly attribute nsIDOMCSSFontFaceRule rule; // null if no associated @font-face rule 1.30 + readonly attribute long srcIndex; // index in the rule's src list, -1 if no @font-face rule 1.31 + readonly attribute DOMString URI; // null if not a downloaded font, i.e. local 1.32 + readonly attribute DOMString localName; // null if not a src:local(...) rule 1.33 + readonly attribute DOMString format; // as per http://www.w3.org/TR/css3-webfonts/#referencing 1.34 + readonly attribute DOMString metadata; // XML metadata from WOFF file (if any) 1.35 +};