Allows repositioning of the dominant-baseline relative to the dominant-baseline of the parent text content element. The shifted object might be a sub- or superscript. Within the shifted object, the whole baseline-table is offset; not just a single baseline. The amount of the shift is determined from information from the parent text content element, the sub- or superscript offset from the nominal font of the parent text content element, percent of the "line-height" of the parent text content element or an absolute value.
Note
|
‘baseline-shift’ properties can nest. Each nested ‘baseline-shift’ is added to previous baseline shift values.
|
Namespace: FMX.RS.SVGTypes
Delphi
|
type
TSVGBaselineShift = (
bsNone,
bsBaseline,
bsSubscript,
bsSuperscript,
bsPercentage,
bsLength);
|
|
Name
|
Description
|
|
bsBaseline
|
There is no baseline shift; the dominant-baseline remains in its original position.
|
|
bsLength
|
The dominant-baseline is shifted in the shift direction (positive value) or opposite to the shift direction (negative value) of the parent text content element by the <length> value. A value of "0cm" is equivalent to "baseline".
|
|
bsNone
|
There is no baseline shift; the dominant-baseline remains in its original position.
|
|
bsPercentage
|
The computed value of the property is this percentage multiplied by the computed "line-height" of the ‘text’ element. The dominant-baseline is shifted in the shift direction (positive value) or opposite to the shift direction (negative value) of the parent text content element by the computed value. A value of "0%" is equivalent to "baseline".
|
|
bsSubscript
|
The dominant-baseline is shifted to the default position for subscripts. The offset to this position is determined using the font data for the nominal font.
|
|
bsSuperscript
|
The dominant-baseline is shifted to the default position for superscripts. The offset to this position is determined using the font data for the nominal font.
|
Top
|