Back to API Reference
Class

BoldModifier

Applies bold styling to text using CSS font-weight scale (100-900).

Remarks

Parameter: optional CSS font-weight (100-900). Without parameter, computes max(700, baseWeight + 300). When used with font variants (static or variable), ResolveVariants selects the appropriate real font and clears the bold buffer. When no variant is available, BoldModifier applies fake bold via SDF shader dilate (UV1.y) and advance correction. Encoding: byte buffer per codepoint. 0 = not bold, 1-255 = CSS weight mapped to byte range.
protected override void OnEnable()
protected override void OnDisable()
protected override void OnDestroy()
protected override void OnApply()