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