TextElement.CenterCaps property
Vertically centre the font’s CAPITAL height in the text’s box (framework 2.33.0) — the optical centre of a one-line label in a fixed-height control (pill, chip, segment): the middle of “H” lands on the middle of the box at any font size. The default line-box centring sits the capitals a pixel or so off-centre (how far depends on the face’s ascender/descender split and the size), and CenterGlyphs centres each string’s OWN drawn bounds, so a label with descenders (“Party”, “Playing”) rises above one without (“List”). This uses the face’s cap-height METRIC, not the drawn glyphs, so every label of a size shares one baseline whatever its letters. Applies to the TextMeshPro path (styled / RichEmoji text); ignored on plain, Shadow and HUD-overlay text, and when the face reports no cap height (line-box centring then, as today). CenterGlyphs wins if both are set. Default false = unchanged. An init property (binary-compatible).
public bool CenterCaps { get; set; }See Also
Section titled “See Also”- record TextElement
- namespace Stellar.Abstractions.Services