nsISVGGlyphMetricsSource

IID:8e96a973-c8bb-43a2-8584-4976e75ca478
Inherits From:nsISVGGeometrySource

\addtogroup rendering_backend_interfaces Rendering Backend Interfaces Abstracts a description of a 'composite glyph' (character string with associated font and styling information) in the SVG rendering backend for use by a rendering engine's nsISVGRendererGlyphMetrics objects.

An engine-native glyph metrics object will be informed of changes in its associated composite glyph with a call to its nsISVGRendererGlyphMetrics::update() method with an OR-ed combination of the UPDATEMASK_* constants defined in this interface (and its base-interface).


Constants

PRUint32 UPDATEMASK_FONT = 32768
PRUint32 UPDATEMASK_CHARACTER_DATA = 65536
PRUint16 TEXT_RENDERING_AUTO = 0
PRUint16 TEXT_RENDERING_OPTIMIZESPEED = 1
PRUint16 TEXT_RENDERING_OPTIMIZELEGIBILITY = 2
PRUint16 TEXT_RENDERING_GEOMETRICPRECISION = 3
PRUint32 UPDATEMASK_TEXT_RENDERING = 131072

Properties

readonly DOMString characterData

readonly nsFont font

readonly PRUint16 textRendering


References

This interface is passed as an argument to the following methods:

nsISVGRenderer.createGlyphMetrics

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com