SceneTextBaseline Enum

The baseline of a text that is on its y coordinate, as the SVG dominant-baseline property (SceneText.Baseline). The renderers compute it from the metrics of the font of each span: its ascent, its descent and its x-height (half its ascent when the font does not give it).

public enum SceneTextBaseline

Fields

NameValueDescription
Alphabetic0The baseline the letters stand on, as SVG alphabetic: the default.
Middle1Half the x-height above the alphabetic baseline, as SVG middle: the middle of the lowercase letters.
Central2Halfway between the ascent and the descent, as SVG central: the middle of the em box.
Hanging3Eight tenths of the ascent above the alphabetic baseline, as SVG hanging in browsers: the line the letters of Devanagari hang from.
Mathematical4Half the ascent above the alphabetic baseline, as SVG mathematical in browsers.
Ideographic5The descent below the alphabetic baseline, as SVG ideographic: the bottom of the ideographs.
TextTop6The ascent above the alphabetic baseline, as SVG text-top: the text hangs below its y coordinate.
TextBottom7The descent below the alphabetic baseline, as SVG text-bottom: the text stands on its y coordinate, descenders included.