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
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
Stroked text is output via theStrokedoutput port.
Parameters
Output Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
This parameter specifies whether the output features should be polygons or lines.
Font Parameters
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
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 | 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 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.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
Specifies the text padding (extra spacing between characters) in ground units.
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
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.访问这些选项的菜单,clickbeside the applicable parameter.For more information,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.