Enum SvgDominantBaseline
- Namespace
- Svg
- Assembly
- Svg.dll
Specifies the dominant baseline, which is used to align the baseline of the text content relative to the dominant baseline of the parent element.
[TypeConverter(typeof(SvgDominantBaselineConverter))]
public enum SvgDominantBaseline
Fields
Alphabetic = 5The baseline-identifier for the dominant-baseline is set to be alphabetic, the derived baseline-table is constructed using the alphabetic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
Auto = 0If this property occurs on a text element, then the computed value depends on the value of the writing-mode attribute. If the writing-mode is horizontal, then the value of the dominant-baseline component is alphabetic, otherwise if the writing-mode is vertical, then the value of the dominant-baseline component is central.
Central = 8The baseline-identifier for the dominant-baseline is set to be central, and the derived baseline-table is constructed from the defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order of baseline-table names: ideographic, alphabetic, hanging, mathematical.
Hanging = 6The baseline-identifier for the dominant-baseline is set to be hanging, the derived baseline-table is constructed using the hanging baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
Ideographic = 4The baseline-identifier for the dominant-baseline is set to be ideographic, the derived baseline-table is constructed using the ideographic baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
Inherit = 14The value is inherited from the parent element.
Mathematical = 7The baseline-identifier for the dominant-baseline is set to be mathematical, the derived baseline-table is constructed using the mathematical baseline-table in the font, and the baseline-table font-size is changed to the value of the font-size attribute on this element.
Middle = 9The baseline-identifier for the dominant-baseline is set to be middle, and the derived baseline-table is constructed from the defined baselines in a baseline-table in the font. That font baseline-table is chosen using the following priority order of baseline-table names: ideographic, alphabetic, hanging, mathematical.
[Obsolete("This value is deprecated in SVG 2.")] NoChange = 2The dominant-baseline, the baseline-table, and the baseline-table font-size remain the same as that of the parent text content element.
This value is deprecated in SVG 2.
[Obsolete("This value is deprecated in SVG 2.")] ResetSize = 3The dominant-baseline and the baseline-table remain the same, but the baseline-table font-size is changed to the value of the font-size attribute on this element.
This value is deprecated in SVG 2.
TextAfterEdge = 10The baseline-identifier for the dominant-baseline is set to be text-after-edge. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. The choice of which font baseline-table to use from the baseline-tables in the font is browser dependent.
This value is from SVG 1.1 specification.
TextBeforeEdge = 11The baseline-identifier for the dominant-baseline is set to be text-before-edge. The derived baseline-table is constructed from the defined baselines in a baseline-table in the font. The choice of which font baseline-table to use from the baseline-tables in the font is browser dependent.
This value is from SVG 1.1 specification.
TextBottom = 12Uses the bottom of the em box as the baseline. This aligns the bottom of the text with the specified position.
See MDN documentation for details.
TextTop = 13Uses the top of the em box as the baseline. This aligns the top of the text with the specified position.
See MDN documentation for details.
[Obsolete("This value is deprecated in SVG 2.")] UseScript = 1The dominant-baseline and the baseline-table components are set by determining the predominant script of the character data content. The writing-mode, whether horizontal or vertical, is used to select the appropriate set of baseline-tables and the dominant baseline is used to select the baseline-table that corresponds to that baseline.
This value is deprecated in SVG 2.
Remarks
The dominant baseline is used to determine or re-determine a scaled-baseline-table. A scaled-baseline-table is a compound value with three components: a baseline-identifier for the dominant-baseline, a baseline-table and a baseline-table font-size.