Functions Reference

Table Of Contents
Chapter 13
|
Text formatting functions 191
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.
TextFontRemove
Format
TextFontRemove(text{;fontToRemove;fontScript})
Parameters
text - any text expression
or text field
fontToRemove - 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.