Click or drag to resize
AB4D logo

GeometrySettingsGeometryTextExport Property

Gets or sets an enum that specifies how text is exported into geometry objects (default value is GlyphRun).

Namespace:  Ab2d.Common.ReaderSvg
Assembly:  Ab2d.ReaderSvg (in Ab2d.ReaderSvg.dll) Version: 7.1.7295.1040
Syntax
C#
public GeometryTextExportType GeometryTextExport { get; set; }

Property Value

Type: GeometryTextExportType
Remarks

When objects are read as shapes, the text is usually represented with TextBlock elements. When text is read as geometries the text can be represented with GlyphRun.

But using GlyphRun has a big disadvantage when the read drawing is exported into xaml. The only way to set the font that is used by the GlyphRun object is by providing a file path and name to the font file. This makes the exported xaml not very portable to other computers.

To overcome this problem it is possible to set the GeometryTextExport value to PathGeometry. It means that all texts will be converted into PathGeometry and are therefore fully portable to any computer.

It is also possible to skip all texts from the read geometry.

See Also