TextSizeRemove
Removes all font sizes in text or the font sizeToRemove.
Format
TextSizeRemove ( text {; sizeToRemove } )
Parameters
text
- any text expression or text field.
sizeToRemove
- any font size expressed as an integer.
Parameters in braces { } are optional.
Data type returned
text
Originated in version
8.0
Description
Use this function to revert text
to the default font size for the field. If you don't specify a size, all of the text displays in the default font size that was set in Layout mode for the field. When the font size is specified by sizeToRemove
, only the specified font size is removed from every portion of the text displayed in that size and these same portions of the text are then displayed in the field's default font size.
The font size is described in points (72 points to the inch). Text formatting options will be lost if the field type that is returned is something other than text.
Example 1
TextSizeRemove ( "10 Point Text and 18 Point Text" )
returns 10 Point Text and 18 Point Text displayed in the field's default font size.
Example 2
TextSizeRemove ( "10 Point Text and 18 Point Text" ; 18 )
returns 10 Point Text and 18 Point Text with the 18 point font size removed from the words 18 Point Text.