Gets or sets the ISVGTextContentElement::lengthAdjust attribute on the given element.
HRESULT ISVGTextContentElement::get_lengthAdjust(ISVGAnimatedEnumeration **p);HRESULT ISVGTextContentElement::put_lengthAdjust(ISVGAnimatedLength *v);
- Address of a pointer to a variable of type ISVGAnimatedEnumeration interface that receives the ISVGTextContentElement::lengthAdjust attribute on the given element.
- Pointer to a variable of type ISVGAnimatedEnumeration interface that specifies the ISVGTextContentElement::lengthAdjust attribute on the given element.
Returns S_OK if successful, or an error value otherwise.
Indicates the type of adjustments to perform in order to make the rendered length of the text match the value specified on the textLength attribute.
A value of
spacingindicates that only the advance values are adjusted. The glyphs themselves are not stretched or compressed.
A value of
spacingAndGlyphsindicates that the advance values are adjusted and the glyphs themselves are stretched or compressed in one axis (that is, in a direction parallel to the inline-progression direction).
The correct start and end positions for the text strings are guaranteed, but the locations of intermediate glyphs are not predictable because browsers might employ advanced algorithms to stretch or compress text strings in order to balance correct start and end positioning with optimal typography.
Be aware that, for a text string that contains n characters, the adjustments to the advance values often occur only for n -1 characters, whereas stretching or compressing of the glyphs will be applied to all n characters.
If the attribute is not specified, the effect is as if a value of