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 SceneTextBaselineFields
| Name | Value | Description |
|---|---|---|
Alphabetic | 0 | The baseline the letters stand on, as SVG alphabetic: the default. |
Middle | 1 | Half the x-height above the alphabetic baseline, as SVG middle: the middle of the lowercase letters. |
Central | 2 | Halfway between the ascent and the descent, as SVG central: the middle of the em box. |
Hanging | 3 | Eight tenths of the ascent above the alphabetic baseline, as SVG hanging in browsers: the line the letters of Devanagari hang from. |
Mathematical | 4 | Half the ascent above the alphabetic baseline, as SVG mathematical in browsers. |
Ideographic | 5 | The descent below the alphabetic baseline, as SVG ideographic: the bottom of the ideographs. |
TextTop | 6 | The ascent above the alphabetic baseline, as SVG text-top: the text hangs below its y coordinate. |
TextBottom | 7 | The descent below the alphabetic baseline, as SVG text-bottom: the text stands on its y coordinate, descenders included. |