Search completed in 1.21 seconds.
47 results for "fontface":
Your results are loading. Please wait...
FontFaceSetLoadEvent.FontFaceSetLoadEvent() - Web APIs
Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
... Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. ...
... The FontFaceSetLoadEvent constructor creates a new FontFaceLoadEvent object which is fired whenever a FontFaceSet loads. Syntax var fontFaceSetLoadEvent = new FontFaceSetLoadEvent(type[, options]) Parameters type The literal value 'Type' (quotation marks included). options Optional Options are as follows: fontfaces: An array of FontFace instances. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFaceSetLoadEvent()' in that specification. Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request...
...efinition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
FontFaceSetLoadEvent.fontfaces - Web APIs
Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
... Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...efinition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
FontFace.FontFace() - Web APIs
Web › API › FontFace › FontFace
The FontFace() constructor creates a new FontFace object. Syntax var fontFace = new FontFace(family, source, descriptors); Parameters family Specifies a name that will be used as the font face value for font properties. Takes the same type of values as the font-family descriptor of @font-face . source The font source. This can be either: A URL Binary font data descriptors Optional A set of optional descriptors passed as an object. ...
...ce The font source. This can be either: A URL Binary font data descriptors Optional A set of optional descriptors passed as an object. It can have the following keys: family: Family style: Style weight: Weight stretch: Stretch unicodeRange: Unicode range variant: variant featureSettings: Feature settings Example async function loadFonts() { const font = new FontFace('myfont', 'url(myfont.woff)'); // wait for font to be loaded await font.load(); // add font to document document.fonts.add(font); // enable font with CSS class document.body.classList.add('fonts-loaded'); } Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFace Constructor' in that specification. ...
FontFace - Web APIs
Web › API › FontFace
The FontFace interface represents a single usable font face. It allows control of the source of the font face, being a URL to an external resource, or a buffer; it also allows control of when the font face is loaded and its current status. Constructor FontFace() Constructs and returns a new FontFace object, built from an external resource described by an URL or from an ArrayBuffer. Properties This interface doesn't inherit any property. FontFace.display A CSSOMString that determines how a font face is displayed based on whether and when it is downloaded and ready to use. FontFace.family A CSSOMString that retrieves or sets the family of the font. It is equivalent to the font-family descriptor. ...
...t from an external resource described by an URL or from an ArrayBuffer. Properties This interface doesn't inherit any property. FontFace.display A CSSOMString that determines how a font face is displayed based on whether and when it is downloaded and ready to use. FontFace.family A CSSOMString that retrieves or sets the family of the font. It is equivalent to the font-family descriptor. FontFace.featureSettings A CSSOMString that retrieves or sets infrequently used font features that are not available from a font's variant properties. It is equivalent to the font-feature-settings descriptor. FontFace.loaded Read only Returns a Promise that resolves with the current FontFace object when the font specified in the object's constructor is done loading or rejects with a SyntaxError. Font...
...s. It is equivalent to the font-feature-settings descriptor. FontFace.loaded Read only Returns a Promise that resolves with the current FontFace object when the font specified in the object's constructor is done loading or rejects with a SyntaxError. FontFace.status Read only Returns an enumerated value indicating the status of the font, one of "unloaded", "loading", "loaded", or "error". FontFace.stretch A CSSOMString that retrieves or sets how the font stretches. It is equivalent to the font-stretch descriptor. FontFace.style A CSSOMString that retrieves or sets the style of the font. It is equivalent to the font-style descriptor. FontFace.unicodeRange A CSSOMString that retrieves or sets the range of unicode codepoints encompassing the font. It is equivalent to the unicode-range de...
...And 2 more matches
FontFaceSetLoadEvent - Web APIs
Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
... Working Draft Initial definition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...efinition. Browser Compatibility The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. ...
...And 2 more matches
nsIDOMFontFace
Attributes Font source attributes These attributes indicate how the font was found during the font matching process. Note: The same physical font may have been found in multiple ways within a range. Attribute Type Description fromFontGroup boolean Indicates whether or not the font was located in a font group. Read only. ...
...Attributes Font source attributes These attributes indicate how the font was found during the font matching process. Note: The same physical font may have been found in multiple ways within a range. Attribute Type Description fromFontGroup boolean Indicates whether or not the font was located in a font group. Read only. ...
...ead only. Attributes only available when specified with @font-face These attributes only have meaningful values when the font is a user font defined using @font-face. Attribute Type Description format DOMString The font format. Read only. ...
...ad only. localName DOMString null if not a src:local(...) rule. Read only. metadata DOMString XML metadata from WOFF file(if any). Read only. rule nsIDOMCSSFontFaceRule null if no associated @font-face rule. Read only. ...
FontFaceSet - Web APIs
The FontFaceSet interface of the CSS Font Loading API manages the loading of font-faces and querying of their download status. Properties FontFaceSet.status Read only Indicates the font-face's loading status. It will be one of 'loading' or 'loaded'. FontFaceSet.ready Read only Promise which resolves once font loading and layout operations have completed. Events FontFaceSet.onloading An EventListener called whenever an event of type loading is fired, indicating a font-face set has started loading. FontFaceSet.onloadingdone An EventListener called whenever an event of type loadingdone is fired, indicating that a font face set has finished loading. ...
...dy Read only Promise which resolves once font loading and layout operations have completed. Events FontFaceSet.onloading An EventListener called whenever an event of type loading is fired, indicating a font-face set has started loading. FontFaceSet.onloadingdone An EventListener called whenever an event of type loadingdone is fired, indicating that a font face set has finished loading. FontFaceSet.onloadingerror An EventListener called whenever an event of type loadingerror is fired, indicating that an error occurred whilst loading a font-face set. Methods FontFaceSet.add() Adds a font to the font set. ...
...tarted loading. FontFaceSet.onloadingdone An EventListener called whenever an event of type loadingdone is fired, indicating that a font face set has finished loading. FontFaceSet.onloadingerror An EventListener called whenever an event of type loadingerror is fired, indicating that an error occurred whilst loading a font-face set. Methods FontFaceSet.add() Adds a font to the font set. FontFaceSet.check() A Boolean that indicates whether a font is loaded, but doesn't initiate a load when it isn't. FontFaceSet.clear() Removes all manually-added fonts from the font set. CSS-connected fonts are unaffected. FontFaceSet.delete() Removes a manually-added font from the font set. CSS-connected fonts are unaffected. ...
...et. Methods FontFaceSet.add() Adds a font to the font set. FontFaceSet.check() A Boolean that indicates whether a font is loaded, but doesn't initiate a load when it isn't. FontFaceSet.clear() Removes all manually-added fonts from the font set. CSS-connected fonts are unaffected. FontFaceSet.delete() Removes a manually-added font from the font set. CSS-connected fonts are unaffected. FontFaceSet.load() Returns a Promise which resolves to a list of font-faces for a requested font. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFaceSet' in that specification. Editor's Draft Initial definition ...
SVGFontFaceElement - Web APIs
The SVGFontFaceElement interface corresponds to the <font-face> elements. Object-oriented access to the attributes of the <font-face> element via the SVG DOM is not possible. ...
...of the <font-face> element via the SVG DOM is not possible. ...
... Methods This interface has no methods but inherits methods from its parent, SVGElement. ...
... Recommendation Initial definition ...
SVGFontFaceFormatElement - Web APIs
The SVGFontFaceFormatElement interface corresponds to the <font-face-format> elements. Object-oriented access to the attributes of the <font-face-format> element via the SVG DOM is not possible. ...
...<font-face-format> element via the SVG DOM is not possible. ...
... Methods This interface has no methods but inherits methods from its parent, SVGElement. ...
... Recommendation Initial definition ...
SVGFontFaceNameElement - Web APIs
The SVGFontFaceNameElement interface corresponds to the <font-face-name> elements. Object-oriented access to the attributes of the <font-face-name> element via the SVG DOM is not possible. ...
...e <font-face-name> element via the SVG DOM is not possible. ...
... Methods This interface has no methods but inherits methods from its parent, SVGElement. ...
... Recommendation Initial definition ...
SVGFontFaceSrcElement - Web APIs
The SVGFontFaceSrcElement interface corresponds to the <font-face-src> elements. Object-oriented access to the attributes of the <font-face-src> element via the SVG DOM is not possible. ...
...he <font-face-src> element via the SVG DOM is not possible. ...
... Methods This interface has no methods but inherits methods from its parent, SVGElement. ...
... Recommendation Initial definition ...
SVGFontFaceUriElement - Web APIs
The SVGFontFaceUriElement interface corresponds to the <font-face-uri> elements. Object-oriented access to the attributes of the <font-face-uri> element via the SVG DOM is not possible. ...
...he <font-face-uri> element via the SVG DOM is not possible. ...
... Methods This interface has no methods but inherits methods from its parent, SVGElement. ...
... Recommendation Initial definition ...
FontFace.featureSettings - Web APIs
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'featureSettings' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'featureSettings' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'featureSettings' in that specification. ...
FontFace.load - Web APIs
Web › API › FontFace › load
Exceptions NetworkError Indicates that the attempt to load the font failed. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'load' in that specification. ...
... Exceptions NetworkError Indicates that the attempt to load the font failed. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'load' in that specification. ...
... Exceptions NetworkError Indicates that the attempt to load the font failed. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'load' in that specification. ...
FontFace.loaded - Web APIs
Web › API › FontFace › loaded
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'loaded' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'loaded' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'loaded' in that specification. ...
FontFace.stretch - Web APIs
Web › API › FontFace › stretch
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'stretch' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'stretch' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'stretch' in that specification. ...
FontFace.style - Web APIs
Web › API › FontFace › style
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'style' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'style' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'style' in that specification. ...
FontFace.unicodeRange - Web APIs
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'unicodeRange' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'unicodeRange' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'unicodeRange' in that specification. ...
FontFace.variant - Web APIs
Web › API › FontFace › variant
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'variant' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'variant' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'variant' in that specification. ...
FontFace.weight - Web APIs
Web › API › FontFace › weight
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'weight' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'weight' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'weight' in that specification. ...
nsIDOMFontFaceList
layout/inspector/public/nsIDOMFontFaceList.idlScriptable A list of nsIDOMFontFace objects, each representing a single font face. 1.0 66 Introduced Gecko 7.0 Inherits from: nsISupports Last changed in Gecko 7.0 (Firefox 7.0 / Thunderbird 7.0 / SeaMonkey 2.4) Method overview nsIDOMFontFace item(in unsigned long index); Attributes Attribute Type Description length unsigned long The number of items in the list. Read only. Methods item() Returns the nsIDOMFontFace object at the specified index into the list. nsIDOMFontFace item( in unsigned long index ); Parameters index The index into the array of the font face object to return. Return value An nsIDOMFontFace object representing a single font face. See als...
...n length unsigned long The number of items in the list. Read only. Methods item() Returns the nsIDOMFontFace object at the specified index into the list. nsIDOMFontFace item( in unsigned long index ); Parameters index The index into the array of the font face object to return. ...
FontFace.display - Web APIs
Web › API › FontFace › display
This property is equivalent to the CSS font-display descriptor. When this property is used, font loading has a timeline with three periods. The lengths of the first two periods depend on the value of the property and the user agent. (See below.) block period The browser invisibly prepares a fallback font. If the font face loads during this time, it's used to display the text and display is complete. swap period If the font face is still not loaded, the fallback font will be shown. When the font face loads, the fallback will be swaped for the downloaded font. ...
...nt. If the font face loads during this time, it's used to display the text and display is complete. swap period If the font face is still not loaded, the fallback font will be shown. When the font face loads, the fallback will be swaped for the downloaded font. failure period If the font face still is not loaded, the fallback font will be shown and no swap will occur. Syntax var display = FontFace.display FontFace.display = display Value A CSSOMString with one of the following values. 'auto': Use the font display strategy provided by the user agent. 'block': Gives the font face a short block period and an infinite swap period. The spec recommends 3 seconds for the block period, though this may vary from browser to browser. 'fallback': Gives the font face a short block period and a s...
FontFace.status - Web APIs
Web › API › FontFace › status
Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'status' in that specification. ...
... Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'status' in that specification. ...
FontFace.family - Web APIs
Web › API › FontFace › family
The FontFace.family property allows the author to get or set the font family of a FontFace object. This is equivalent to the font-family descriptor of @font-face. Syntax instanceOfFontFace.family = 'font family name'; var fontFace = instanceOfFontFace.family; // "font family name" Value A DOMString. Example var fontFace = new FontFace('Roboto', 'url(https://fonts.example.com/roboto.woff2)'); console.log(fontFace.family); // 'Roboto' fontFace.family = 'newRoboto'; console.log(fontFace.family); // 'newRoboto' Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'family' in that specification. Working Draft Initial definition ...
FontFaceSet.check() - Web APIs
Web › API › FontFaceSet › check
"italic bold 16px Roboto" text: limit the font faces to those whose Unicode range contains at least one of the characters in text. This does not check for individual glyph coverage. Examples document.fonts.check("12px courier"); // returns true if the font courier is available at 12px document.fonts.check("12px MyFont", "ss"); // returns true if the font 'MyFont' has a ss character. ...
FontFaceSet.load() - Web APIs
Web › API › FontFaceSet › load
The promise is fulfilled when all the fonts are loaded; it is rejected if one of the fonts failed to load. Parameters font: a font specification using the CSS value syntax, e.g. "italic bold 16px Roboto" text: limit the font faces to those whose Unicode range contains at least one of the characters in text. This does not check for individual glyph coverage. Examples // returns a promise that will be fulfilled or rejected according the success to load MyFont // The code in 'then' can assume the availability of that font. ...
FontFaceSet.ready - Web APIs
Web › API › FontFaceSet › ready
The ready readonly property of the FontFaceSet interface returns a Promise that resolves to the given FontFaceSet. Syntax fontFaceSet.ready.then(function(fontFaceSet) { // ... }); Returns A Promise that resolves to the given FontFaceSet. Parameters None. Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFaceSet' in that specification. Working Draft Initial definition ...
Index - Web APIs
Web › API › Index
ace returns the FeaturePolicy interface which provides a simple API for inspecting the feature policies applied to a specific document. 912 Document.fgColor API, Deprecated, HTML DOM, NeedsMarkupWork, NeedsSpecTable, Property, Reference fgColor gets/sets the foreground color, or text color, of the current document. 913 Document.fonts API, DOM, Font Loading API, FontFace, FontFaceSet, Fonts, font The fonts property of the Document interface returns the FontFaceSet interface of the document. 914 Document.forms API, DOM, Document, Forms, HTML DOM, HTML forms, Property, Reference The forms read-only property of the Document interface returns an HTMLCollection listing all the <form> elements contained in the document. 915 Documen...
...ewly created FocusEvent object with an optional EventTarget. When the event has both a source and a destination, the relatedTarget value must be set to the other target. ...
...ptional EventTarget. When the event has both a source and a destination, the relatedTarget value must be set to the other target. ...
...And 24 more matches
CSS Object Model (CSSOM) - Web APIs
The CSS Object Model is a set of APIs allowing the manipulation of CSS from JavaScript. It is much like the DOM, but for the CSS rather than the HTML. It allows users to read and modify CSS style dynamically. ...
... CSS Typed Object Mode...
... CSS Typed Object Model ...
...ConditionRule CSSCounterStyleRule CSSFontFaceRule CSSFontFeatureValuesMap CSSFontFeatureValuesRule CSSGroupingRule CSSImportRule CSSKeyframeRule CSSKeyframesRule CSSMarginRule CSSMediaRule CSSNamespaceRule CSSPageRule CSSRule CSSRuleList CSSStyleDeclaration CSSStyleSheet CSSStyleRule CSSSupportsRule CSSVariablesMap CSSViewportRule ElementCSSInlineStyle FontFace FontFaceSet FontFaceSetLoadEvent GeometryUtils GetStyleUtils LinkStyle MediaList MediaQueryList MediaQueryListEvent MediaQueryListListener Screen StyleSheet StyleSheetList TransitionEvent Several other interfaces are also extended by the CSSOM-related specifications: Document, Window, Element, HTMLElement, HTMLImageElement, Range, MouseEvent, and SVGElement. CSS Typed Object Model CSSImageValu...
inIDOMUtils
ong getRuleLine(in nsIDOMCSSStyleRule aRule); unsigned long getRuleColumn(in nsIDOMCSSStyleRule aRule); unsigned long getSelectorCount(in nsIDOMCSSStyleRule aRule); AString getSelectorText(in nsIDOMCSSStyleRule aRule, in unsigned long aSelectorIndex); unsigned long long getSpecificity(in nsIDOMCSSStyleRule aRule, in unsigned long aSelectorIndex); nsIDOMFontFaceList getUsedFontFaces(in nsIDOMRange aRange); bool hasPseudoClassLock(in nsIDOMElement aElement, in DOMString aPseudoClass); boolean isIgnorableWhitespace(in nsIDOMCharacterData aDataNode); bool isInheritedProperty(in AString aPropertyName); void parseStyleSheet(in nsIDOMCSSStyleSheet aSheet, in DOMString aInput); void removePseudoClassLock(in nsIDOME...
...from its parent style sheet object. getRuleColumn() Returns the column number of the specified CSS style rule in its source file. unsigned long getRuleColumn( in nsIDOMCSSStyleRule aRule ); Parameters aRule The style rule to retrieve the column number of. Return value The column number of the style rule; the URL of the rule can be obtained from its parent style sheet object. getUsedFontFaces() Returns a list of the fonts specified using @font-face in the specified portion of the document. nsIDOMFontFaceList getUsedFontFaces( in nsIDOMRange aRange ); Parameters aRange The DOM range to retrieve the font faces of. Return value An nsIDOMFontFaceList object listing all the font faces used by the text in the range. isIgnorableWhitespace() Determines if the specified text no...
nsIHTMLEditor
(in AString aTagName); void decreaseFontSize(); void doDrag(in nsIDOMEvent aEvent); void getAlignment(out boolean aMixed, out short aAlign); AString getBackgroundColorState(out boolean aMixed); nsIDOMElement getElementOrParentByTagName(in AString aTagName, in nsIDOMNode aNode); AString getFontColorState(out boolean aMixed); AString getFontFaceState(out boolean aMixed); AString getHeadContentsAsHTML(); AString getHighlightColorState(out boolean aMixed); void getIndentState(out boolean aCanIndent, out boolean aCanOutdent); void getInlineProperty(in nsIAtom aProperty, in AString aAttribute, in AString aValue, out boolean aFirst, out boolean aAny, out boolean aAll); AString getInlinePropertyWith...
... null, the anchor node of the current selection is used. Return value NS_EDITOR_ELEMENT_NOT_FOUND if an element is not found (passes NS_SUCCEEDED macro) getFontColorState() Returns what font face is in the selection. AString getFontColorState( out boolean aMixed ); Parameters aMixed true if there is more than one font color. Return value Color string. "" is returned for none. getFontFaceState() Returns what font face is in the selection. AString getFontFaceState( out boolean aMixed ); Parameters aMixed true if there is more than one font face. Return value Name of face. Note: "tt" is returned for tt tag. "" is returned for none. getHeadContentsAsHTML() Output the contents of the <HEAD> section as text/HTML format. AString getHeadContentsAsHTML(); Parameters Non...
Document.fonts - Web APIs
Web › API › Document › fonts
The fonts property of the Document interface returns the FontFaceSet interface of the document. Syntax let fontFaceSet = document.fonts; Value The returned value is the FontFaceSet interface of the document. The FontFaceSet interface is useful for loading new fonts, checking the status of previously loaded fonts etc. Examples Doing operation after all fonts are loaded document.fonts.ready.then(function() { // Any operation that needs to be done only after all the fonts // have finished loading can go here. }); Specifications Specification Status Comment CSS Font Loading Module Level 3The definition of 'FontFaceSet' in that specification. Working Draft Initial definition Browser compatibility The compatibility table on this page is generated ...
... 10Samsung Internet Android Full support 5.0Legend Full support Full support No support No supportUser must explicitly enable this feature.User must explicitly enable this feature. See also FontFaceSet interface FontFace ...
Web APIs
Web › API
ntListener EventSource EventTarget ExtendableEvent ExtendableMessageEvent F FeaturePolicy FederatedCredential FetchEvent File FileEntrySync FileError FileException FileList FileReader FileReaderSync FileRequest FileSystem FileSystemDirectoryEntry FileSystemDirectoryReader FileSystemEntry FileSystemEntrySync FileSystemFileEntry FileSystemFlags FileSystemSync FocusEvent FontFace FontFaceSet FontFaceSetLoadEvent FormData FormDataEntryValue FormDataEvent FullscreenOptions G GainNode Gamepad GamepadButton GamepadEvent GamepadHapticActuator Geolocation GeolocationCoordinates GeolocationPosition GeolocationPositionError GeometryUtils GestureEvent GlobalEventHandlers Gyroscope H HTMLAnchorElement HTMLAreaElement HTMLAudioElement HTMLBRElement HTMLBaseElement HTML...
...FEFloodElement SVGFEFuncAElement SVGFEFuncBElement SVGFEFuncGElement SVGFEFuncRElement SVGFEGaussianBlurElement SVGFEImageElement SVGFEMergeElement SVGFEMergeNodeElement SVGFEMorphologyElement SVGFEOffsetElement SVGFEPointLightElement SVGFESpecularLightingElement SVGFESpotLightElement SVGFETileElement SVGFETurbulenceElement SVGFilterElement SVGFilterPrimitiveStandardAttributes SVGFontElement SVGFontFaceElement SVGFontFaceFormatElement SVGFontFaceNameElement SVGFontFaceSrcElement SVGFontFaceUriElement SVGForeignObjectElement SVGGElement SVGGeometryElement SVGGlyphElement SVGGlyphRefElement SVGGradientElement SVGGraphicsElement SVGHKernElement SVGImageElement SVGLength SVGLengthList SVGLineElement SVGLinearGradientElement SVGMPathElement SVGMaskElement SVGMatrix SVGMeshElement ...
Editor Embedding Guide - Archive of obsolete content
te_attribute" (cstring) Note For color values, use the cstring representation of RRGGBB, e.g., RED="#FF0000" and BLACK="#000000". cmd_backgroundColor Sets the background color of the document. GetCommandState "state_attribute" (cstring) DoCommand "state_attribute" (cstring) Note For color values, use the cstring representation of RRGGBB, e.g., RED="#FF0000" and BLACK="#000000". cmd_fontFace Sets the font face for the current selection. GetCommandState "state_attribute" (cstring) DoCommand "state_attribute" (cstring or string) "Helvetica, Arial, sans-serif" "Times New Roman, Times, serif" "Courier New, Courier, monospace" Any string is acceptable. The above strings should be considered examples of base functionality and in no way imply that this com...
Index
Mozilla › Tech › XPCOM › Index
I Reference, drag and drop The nsIDOMFileList interface contains a list of nsIDOMFile objects describing the files selected by the user for a "file" input field on a web form. 483 nsIDOMFileReader DOM, File I/O, Files, Interfaces, Interfaces:Scriptable The nsIDOMFileReader interface provides a way to read data from a file specified by an nsIDOMFile. 484 nsIDOMFontFace Interfaces, Interfaces:Scriptable, NeedsContent This object describes a single font. It's returned in a list you can get using inIDOMUtils.getUsedFontFaces(). 485 nsIDOMFontFaceList Interfaces, Interfaces:Scriptable, Reference, Reference(2), XPCOM Interface Reference Returns the nsIDOMFontFace object at the specified index into the list. 486 nsIDOMGeoGeol...
XPCOM Interface Reference
arsetListenernsICycleCollectorListenernsIDBChangeListenernsIDBFolderInfonsIDNSListenernsIDNSRecordnsIDNSRequestnsIDNSServicensIDOMCanvasRenderingContext2DnsIDOMChromeWindownsIDOMClientRectnsIDOMDesktopNotificationnsIDOMDesktopNotificationCenternsIDOMElementnsIDOMEventnsIDOMEventGroupnsIDOMEventListenernsIDOMEventTargetnsIDOMFilensIDOMFileErrornsIDOMFileExceptionnsIDOMFileListnsIDOMFileReadernsIDOMFontFacensIDOMFontFaceListnsIDOMGeoGeolocationnsIDOMGeoPositionnsIDOMGeoPositionAddressnsIDOMGeoPositionCallbacknsIDOMGeoPositionCoordsnsIDOMGeoPositionErrornsIDOMGeoPositionErrorCallbacknsIDOMGeoPositionOptionsnsIDOMGlobalPropertyInitializernsIDOMHTMLAudioElementnsIDOMHTMLFormElementnsIDOMHTMLMediaElementnsIDOMHTMLSourceElementnsIDOMHTMLTimeRangesnsIDOMJSWindownsIDOMMouseScrollEventnsIDOMMozNetworkStatsn...
CSSRule - Web APIs
Web › API › CSSRule
SSRule.STYLE_RULE 1 CSSStyleRule The most common kind of rule: selector { prop1: val1; prop2: val2; } CSSRule.IMPORT_RULE 3 CSSImportRule An @import rule. ...
CSS Font Loading API - Web APIs
The CSS Font Loading API provides events and interfaces for dynamically loading font resources. Interfaces FontFace Represents a single usable font face. FontFaceSet An interface loading font faces and checking their download statuses. FontFaceSource A mixin providing all of the fonts used in font-related operations, unless defined otherwise. It defines the FontFaceSources.fonts property available to Document and WorkerGlobalScope. FontFaceSetLoadEvent Fired whenever a FontFaceSet loads. Specifications Specification Status Comment CSS Font Loading Module Level 3 Working Draft Initial definition. ...
CanvasRenderingContext2D.font - Web APIs
Using a custom font In this example we use the font property to specify a custom font weight, size, and family. HTML <canvas id="canvas"></canvas> JavaScript const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.font = 'bold 48px serif'; ctx.strokeText('Hello world', 50, 100); Result Loading fonts with the CSS Font Loading API With the help of the FontFace API, you can explicitly load fonts before using them in a canvas. let f = new FontFace('test', 'url(x)'); f.load().then(function() { // Ready to use the font in a canvas context }); Specifications Specification Status Comment HTML Living StandardThe definition of 'CanvasRenderingContext2D.font' in that specification. Living Standard ...
Document - Web APIs
Web › API › Document
entElementRead only Returns the Element that is a direct child of the document. For HTML documents, this is normally the HTMLHtmlElement object representing the document's <html> element. Document.documentURIRead only Returns the document location as a string. Document.embedsRead only Returns a list of the embedded <embed> elements within the current document. Document.fonts Returns the FontFaceSet interface of the current document. Document.formsRead only Returns a list of the <form> elements within the current document. Document.headRead only Returns the <head> element of the current document. Document.hiddenRead only Returns a Boolean value indicating if the page is considered hidden or not. Document.imagesRead only Returns a list of the images in the current document. Do...
Document Object Model (DOM) - Web APIs
FEFuncAElement SVGFEFuncBElement SVGFEFuncGElement SVGFEFuncRElement SVGFEGaussianBlurElement SVGFEImageElement SVGFEMergeElement SVGFEMergeNodeElement SVGFEMorphologyElement SVGFEOffsetElement SVGFEPointLightElement SVGFESpecularLightingElement SVGFESpotLightElement SVGFETileElement SVGFETurbulenceElement SVGFilterElement SVGFilterPrimitiveStandardAttributes SVGFontElement SVGFontFaceElement SVGFontFaceFormatElement SVGFontFaceNameElement SVGFontFaceSrcElement SVGFontFaceUriElement SVGForeignObjectElement SVGGElement SVGGeometryElement SVGGlyphElement SVGGlyphRefElement SVGGradientElement SVGGraphicsElement SVGHatchElement SVGHatchpathElement SVGHKernElement SVGImageElement SVGLinearGradientElement SVGLineElement SVGMarkerElement SVGMas...
Event - Web APIs
Web › API › Event
ch handler triggered. Interfaces based on Event Below is a list of interfaces which are based on the main Event interface, with links to their respective documentation in the MDN API reference. Note that all event interfaces have names which end in "Event". ...
<font-face-format> - SVG: Scalable Vector Graphics
The <font-face-format> SVG element describes the type of font referenced by its parent <font-face-uri>. Usage context CategoriesFont elementPermitted contentEmpty Attributes Global attributes Core attributes Specific attributes string DOM Interface This element implements the SVGFontFaceFormatElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-format>' in that specification. Recommendation Initial definition ...
<font-face-name> - SVG: Scalable Vector Graphics
The <font-face-name> element points to a locally installed copy of this font, identified by its name. Usage context CategoriesNonePermitted contentEmpty Attributes Global attributes Core attributes >> Specific attributes name DOM Interface This element implements the SVGFontFaceNameElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-name>' in that specification. Recommendation Initial definition ...
<font-face-src> - SVG: Scalable Vector Graphics
ainer for <font-face-name>, pointing to locally installed copies of this font, and <font-face-uri>, utilizing remotely defined fonts. Usage context CategoriesFont elementPermitted contentOne or more of the following elements, in any order:<font-face-name>, <font-face-uri> Attributes Global attributes Core attributes Specific attributes None DOM Interface This element implements the SVGFontFaceSrcElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-src>' in that specification. Recommendation Initial definition ...
<font-face-uri> - SVG: Scalable Vector Graphics
The <font-face-uri> SVG element points to a remote definition of the current font. Usage context CategoriesFont elementPermitted contentAny number of the following elements, in any order:<font-face-format> Attributes Global attributes Core attributes XLink attributes Specific attributes xlink:href DOM Interface This element implements the SVGFontFaceUriElement interface. Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face-uri>' in that specification. Recommendation Initial definition ...
<font-face> - SVG: Scalable Vector Graphics
Web › SVG › Element › font-face
Specifications Specification Status Comment Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of '<font-face>' in that specification. Recommendation Initial definition ...