Reference > Functions reference > Text formatting functions > TextFont
 
TextFont
Purpose 
Changes the font of text to the specified fontName.
Format 
TextFont(text;fontName)
Parameters 
text - any text expression or text field.
fontName - any font name expressed in text.
Data type returned 
text
Originated in 
FileMaker Pro 7.0
Description 
Spellings for font names must be correct. Text formatting options will be lost if the field type that is returned is something other than text.
Examples 
TextFont ( "Plaid" ; "Courier" ) returns the word Plaid in the Courier font.
TextFont ( "Plaid" ; "Arial" ) returns the word Plaid in the Arial font.
TextSize ( TextFont ( TextColor ( MyTable::MyText ; RGB ( 0 ; 125 ; 125 ) ) ; "Courier" ) ; 12 ) returns the text contained in MyTable::MyText formatted as 12pt. 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