FME Transformers: 2025.0

Categories
Cartography and Reports
Rasters
Related Transformers
ImageRasterizer
Labeller
LabelPointReplacer
TextAdder
TextLocationExtractor
TextPropertyExtractor
TextPropertySetter
VectorOnRasterOverlayer

TextStroker

Converts text to aggregate line or area geometry according to a specific True Type font.

Jump to Configuration

Typical Uses

  • Creating non-text geometry from specific fonts and font properties
  • Preparing text for rasterization

How does it work?

The TextStroker receives features with text geometry and outlines the characters, producing non-text aggregate geometry containing either lines or polygons.

The shape of the characters is determined by specifying a True Type font, along with any font properties (Bold, Italic, Underline, and such) and size, which is interpreted as ground units in the feature’s coordinate system (not points).

Extra width may be added between characters, and character width may be scaled.

The output aggregates are composed of straight segments and do not include arcs.

Stroked Geometry Type

Description

Output

Detail with Nodes

 

Input Feature: Text

 

Polygon Features

Font: Comic Sans MS,250,BOLD

Outline Features

Font: Impact,250

Specifying a Font

Fonts can be selected from the font picker via the ellipsis button, or provided as a string. String syntax is:

<font name>,<font size>,<font style>,<font effects>

All components are comma-separated, as in these examples:

Arial,75

Arial,75,BOLD

Arial,75,BOLD,ITALIC

Arial,75,BOLD,ITALIC,UNDERLINE

Arial,75,UNDERLINE

Available font styles vary by font.

If Font Name is not specified, the transformer will attempt to retrieve that information from the fme_font_name and fme_text_size attributes. Note that these attributes are infrequently used and unrelated to any format-specific font attributes that may exist on the input features.

Examples

Usage Notes

  • Some formats may include font information as format-specific attributes - to access these, expose them on the reader or use an AttributeExposer.
  • If a workspace is to be run on a different machine or platform, ensure the specified font is available there.
  • If output does not appear as expected, ensure that the font exists and is True Type.

Creating and Modifying Point and Text Features

These transformers work with points, text, and labels in a variety of ways.

Configuration

Input Ports

Output Ports

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

Reference

Processing Behavior

Feature-Based

Feature Holding

No

Dependencies None
Aliases  
History  

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the TextStroker on the FME Community.

 

Examples may contain information licensed under the Open Government Licence – Vancouver, Open Government Licence - British Columbia, and/or Open Government Licence – Canada.