TextFontRemove()

Category: Text Formatting

Syntax: TextFontRemove ( text {; fontName; fontScript} )


Parameters:

textAny text expression or text field.

fontNameAny font name expressed in text.

fontScriptThe name of a character set that contains characters required for writing in the specified language.

Parameters in curly braces { } are optional.

Note that the fontScript parameter is not enclosed in quotation marks (" ") and requires the specific keywords listed later.

Data type returned: Text

Description:

Removes all fonts applied to text, or removes only fonts and font scripts as specified by the two optional parameters, fontName and fontScript. Once fonts have been removed, the data is displayed and treated as text entered into any FileMaker field by adopting whatever font attributes have been applied to the layout objects in question.

Note that font names are case sensitive and need to be entered correctly in order for the function to work properly.

Note also that font formatting functions only work on data returned as text.

The following font scripts are available:

Roman

Greek

Cyrillic

Central

Europe

ShiftJIS

TraditionalChinese

SimplifiedChinese

OEM

Symbol

Other

Examples:

Function

Results

TextFontRemove ( "Nuke all fonts" )

Returns Nuke all fonts displayed in a layout objects default font.

TextFontRemove ( "Two fonts enter, one font leaves"; "Comic Sans MS" )

Returns Two fonts enter, one font leaves with the Comic Sans MS font removed (assuming the original text string made use of it).

TextFontRemove ( "Hows your Russian?"; "Arial"; Cyrillic )

Returns Hows your Russian? with the Arial font removed from any Cyrillic character sets.








FileMaker 8 Functions and Scripts Desk Reference
FileMaker 8 Functions and Scripts Desk Reference
ISBN: 0789735113
EAN: 2147483647
Year: 2004
Pages: 352
Simiral book on Amazon

Flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net