Reference > Functions reference > Text formatting functions > TextSize
 

TextSize

Changes the font size of specified text to fontSize.

Format 

TextSize(text;fontSize)

Parameters 

text - any text expression or text or number field

fontSize - any font size expressed as an integer

Data type returned 

text, number

Originated in 

FileMaker Pro 7.0

Description 

The font size is described in points (72 points to the inch). Text formatting options will be lost if the data type that is returned is something other than text or number.

Example 1 

TextSize ( "Plaid" ; 18 ) returns the word Plaid in 18 point text.

TextSize ( "Plaid" ; 24 ) returns the word Plaid in 24 point text.

Example 2 

TextSize ( TextFont ( TextColor ( MyTable::MyText ; RGB ( 0 ; 125 ; 125 ) ) ; "Courier" ) ; 12 ) returns the text contained in MyTable::MyText formatted as 12-point. green text with the Courier font.

Related topics 

Functions reference (category list)

Functions reference (alphabetical list)

About formulas

About functions

Defining calculation fields

Using operators in formulas