Public Overloads Sub SetDefaultFont( _ ByVal familyName As String _ )
public void SetDefaultFont( string familyName )
Parameters
- familyName
- The font family to set as the default
Public Overloads Sub SetDefaultFont( _ ByVal familyName As String _ )
public void SetDefaultFont( string familyName )
| Exception | Description |
|---|---|
| ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
| System.ArgumentException | font not found |
{
var def_font = SymbolFactory.Instance.DefaultFont;
System.Diagnostics.Debug.WriteLine($"{def_font.fontName}, styles: {def_font.styleName}");
//set default font - set through application options
//Note: Must use QueuedTask
ApplicationOptions.TextAndGraphicsElementsOptions.SetDefaultFont("tahoma");
ApplicationOptions.TextAndGraphicsElementsOptions.SetDefaultFont("tahoma", "bold");
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)