textHeight

Specifies the amount of space between lines of text in a field.

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

set the textHeight of field to pixels

# Examples

get the effective textHeight of field "Results"

set the textHeight of field 1 to theLines * the textHeight of field 1

set the textHeight of field 1 to 20

# Description

Use the textHeight property to change the appearance of text in a field.

The textHeight property determines how tall each line of a field is, and is equal to the vertical distance in pixels between the baseline of one line and the baseline of the next. The minimum textHeight is 4 pixels.

>*Note:* If you change the field's textSize, LiveCode automatically sets > the textHeight to trunc(4/3 * the textSize of field). For example, > if the textSize is set to 12, the textHeight is set to 16 by > default. If the textSize is set to 14, the textHeight is set > to 18. So, if you want to change the textHeight and textSize, set > the textSize first, then set the textHeight.

If a field's fixedLineHeight property is false, the textHeight of the field has no effect: in this case, the text height of each line is determined by the size of the largest text in the line, and changing the textHeight doesn't change the spacing of lines.

# Tags

ui,

# See

- **keyword:** default, integer, field, effective - **property:** printTextHeight, pixels, fixedLineHeight, textSize - **function:** textHeightSum - **glossary:** property, appearance - **object:** field