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).
@nosubgrouping
[scriptable, uuid(8e96a973-c8bb-43a2-8584-4976e75ca478)]
interface nsISVGGlyphMetricsSource : nsISVGGeometrySource
Constants
const
unsigned long
UPDATEMASK_FONT = 32768
const
unsigned long
UPDATEMASK_CHARACTER_DATA = 65536
@} */
@name Text rendering mode
@{
const
unsigned short
TEXT_RENDERING_AUTO = 0
const
unsigned short
TEXT_RENDERING_OPTIMIZESPEED = 1
const
unsigned short
TEXT_RENDERING_OPTIMIZELEGIBILITY = 2
const
unsigned short
TEXT_RENDERING_GEOMETRICPRECISION = 3
const
unsigned long
UPDATEMASK_TEXT_RENDERING = 131072
Attributes
@} */
@name Character data
@{
readonly attribute
DOMString
characterData
@name Font
@{
[noscript]
readonly attribute
nsFont
font
readonly attribute
unsigned short
textRendering
Compare to: