Specifies how far text is shifted up or down from its baseline.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:
# Syntax
set the textShift of chunk of field to pixels
# Examples
set the textShift of last char of word 2 of field 1 to 3 -- subscript
set the textShift of char 12 of the selectedField to -1 -- superscript
# Description
The textShift is the number of pixels to shift the text down from the baseline, creating a subscript. If the textShift is negative, the text is shifted up (superscripted). If the textShift is zero, the text is placed in normal position, not shifted up or down.
>*Note:* If the field fixedLineHeight property is > true, you may need to increase the field > textHeight to make room for subscripts and superscripts.
# Tags
ui,
# See
- **keyword:** field, integer - **property:** fixedLineHeight, pixels, textHeight - **object:** field - **glossary:** property, chunk, negative