Back to API Reference
Remarks
Plates stack in the order of their styles: a wider dark plate under a white one draws a rim, an offset copy under both a drop. The paint spans the text block under a PaintMapping.Block mapping, moved with the plate, and the plate itself under any other. The plate is rebuilt from the final glyph faces whenever they change, so it follows deformed and animated glyphs at the cost of a rebuild per change; each glyph's share of Width follows the scale animations and deformers give its face, an em width also the glyph's size (size markup, sub- and superscripts, small caps), while a pixel width keeps its size and stretching a sprite's box changes neither. A color glyph or an inline sprite contributes the ink of its picture, a procedural decoration shape its face.
protected IPaintProvider DecorationPaintProvider{ get }public IPaintProvider Provider{ get; set }Source of named solid, gradient and texture paints.
public PaintRef Paint{ get; set }Plate paint (inline color, named swatch, or default white). A per-range value overrides it.
public UnitValue Width{ get; set }How far the plate reaches past the glyph outlines. A per-range value overrides it.
public UnitValue Smoothing{ get; set }Radius of the plate's inner corners: where the grown outlines of neighboring glyphs come within twice it, the plate closes over the gap. Zero keeps the plain grown outline. A per-range value overrides it.
public UnitVector2 Offset{ get; set }Displacement of the plate from the text. A per-range value overrides it.
protected internal ParameterDescriptorSet Descriptors{ get }The parameter surface this modifier declares: descriptors, inherited ones first, and the markup slots of each level of its type. Override with the type's generated Param.All set; the default declares none.
protected override void OnBuildDecoration(in RangeDecorationContext context, ref RangeMeshWriter writer)