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 theStrokedoutput 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:
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 | 边条r Arial |
Arial,16 | 边条r 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 thefme_font_nameattribute of an incoming feature by leaving this parameter empty.
The font size can also be specified by setting thefme_text_sizeattribute of an incoming feature. If a size is specified using theFont Nameparameter, it takes precedence over thefme_text_sizeattribute.
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在适用的参数。更多的备用ion, seeTransformer Parameter Menu Options.
Transformer Categories
FME Licensing Level
FME Professional edition and above
Search FME Knowledge Center
Search for samples and information about this transformer on theFME Knowledge Center.