Skip to content

Interface: TextOutline ​

Experimental

Glyph outline / halo / shadow (troika's outline pass: one extra draw call when any is set).

Properties ​

PropertyTypeDescription
blur?numberExperimental Blur radius in px (soft shadow). Default 0.
colorRGBAExperimental sRGB 0–1 RGBA.
offsetX?numberExperimental Shadow offset in px, +x right. Default 0.
offsetY?numberExperimental Shadow offset in px, +y down (screen convention). Default 0.
widthnumberExperimental Outline width in px. Keep ≲ 10% of the font size: the SDF has a limited distance range.

Released under the MIT License.