Go to Contents
Previous
Page
Next
Page
Contents > Functions reference (alphabetical list) > Text formatting functions > TextFont function

TextFont function
Format

TextFont(text;fontName{;fontScript})
Parameters
text - any text expression or text field.
fontName - any font name expressed in text.
{fontScript} - the name of a character set that contains characters required for writing in the specified language.
Parameters in curly braces { } are optional.
Note   The fontScript parameter is not enclosed in quotation marks (" "), and can have any of the values listed below in Description.
Data type returned
text
Description
Changes the font of text to the specified fontName or optional {fontScript}. Spellings for font names must be correct and are case-sensitive. Text formatting options will be lost if the data type that is returned is something other than text.
FileMaker Pro looks for a font that matches the specified font name and font script character set. If no matches exist, FileMaker Pro looks for a default font with the font script specified in the Fonts tab of the Preferences dialog box. If this fails, then the TextFont function uses the default font for the system script specified in the Fonts tab of the Preferences dialog box. This font might not be the same as the font script provided.
The following font scripts are available:
Roman
Greek
Cyrillic
CentralEurope
ShiftJIS
TraditionalChinese
SimplifiedChinese
OEM
Symbol
Other
Examples
TextFont("Plaid";"Courier") returns the word Plaid in the Courier font.
TextFont("Plaid";"Arial") returns the word Plaid in the Arial font.
TextFont("Plaid";"Arial";Cyrillic) returns the word Plaid in the Arial font in the font script of Cyrillic.
Related topics
Functions reference (category list)
Functions reference (alphabetical list)
About formulas
About functions
Defining calculation fields
Using operators in formulas

Contents > Functions reference (alphabetical list) > Text formatting functions > TextFont function
Previous
Page
Next
Page