Error getting tags :
error 404Error getting tags :
error 404 textSize | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

set the textSize of object to pointSize

set the textSize of [chunk of] field to pointSize

Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Specifies the point size of text displayed by an object.

set the textSize of card "Intro" to 24
set the textSize of word 1 of field ID 3 to 9

Additional Comments
Expander triangle

Use the textSize property to change the appearance of text.


The textSize of an object or chunk is either empty or an integer greater than 4.


Setting the textSize of an object to empty allows the textSize of the object's owner to show through. Use the effective keyword to find out what size is used for the object, even if its own textSize is empty.

The textSize of an object defines the height of the text and is specified in points. The engine will ensure that this is equivalent to pixels, for example, if you set the textSize of a field to 8 points, then the engine will output text that is 8 pixels high on all platforms. The height of the text is measured from the bottom of the lowest reaching character to the top of the highest reaching character.

Setting the textSize of an object will also change the textHeight of the object. If you need to calculate what the textHeight will be for a given textSize, multiply the textSize by four, then divide the result by three, then finally round down to the nearest integer. In short:

textHeight = floor((4 * textSize)/3)

Note: the textHeight of an object is like the line spacing, it is the amout of space between the lines, not the height of the actual text.

User Comments
Expander triangle