TextStroker
Takes as input a font name, text padding and width multiplier, and outputs aggregates that describe the outline of the text. If the font name is not supplied, then the font name and style are retrieved from attributes on the feature.
Output Ports
Stroked text is output via the Stroked output port.
Any rejected features (for example, points with no text attributes) are output via the <Rejected> output port.
Parameters
Output Parameters
This parameter specifies whether the output features should be polygons or lines.
Font Parameters
The font name can refer to any valid TrueType font, and is case-insensitive. The font name can also include optional style specifiers according to the syntax:
<fontname>[,SIZE][,BOLD][,ITALIC][,<character set index within font>]
The [ ] enclose optional items. The character set index, which is an integer starting at 0, is typically not used.
Some example font specifications include:
Arial | Regular Arial |
Arial,16 | Regular Arial, 16 pt |
Arial,ITALIC | Italic Arial |
Arial,BOLD | Bold Arial |
Arial,BOLD, ITALIC | Bold and Italic Arial |
Arial,16,BOLD,ITALIC | Bold and Italic Arial, 16 pt |
The font can also be specified in the exact same way using the fme_font_name attribute of an incoming feature by leaving this parameter empty.
The font size can also be specified by setting the fme_text_size attribute of an incoming feature. If a size is specified using the Font Name parameter, it takes precedence over the fme_text_size attribute.
Specifies the text padding (extra spacing between characters) in ground units.
The font width multiplier multiplies the "natural" width for the font, based on the height. A value of zero indicates that the font width is equal to the font height.
A multiplier of two will give characters at twice their normal width.
Example
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.
Transformer Categories
FME Licensing Level
FME Professional edition and above
Search FME Community
Search for samples and information about this transformer on the FME Community.