ArcGIS Pro 2.9 API Reference Guide
GetAvailableFonts Method (TextAndGraphicsElementsOptions)

ArcGIS.Desktop.Core Namespace > TextAndGraphicsElementsOptions Class : GetAvailableFonts Method
Gets the list of available fonts in the application for the Pro session. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Return Value

A list of tuples where tuple.fontName is the font family name and tuple.fontStyles is a list of available styles for the given font family
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

TextAndGraphicsElementsOptions Class
TextAndGraphicsElementsOptions Members