TextElement.DynamicFontSize property
When non-null, overrides FontSize and is re-evaluated each HUD refresh. Use with ScreenHeight to scale text with screen resolution: DynamicFontSize = () => services.Framework.ScreenHeight / 19.
public Func<int>? DynamicFontSize { get; set; }See Also
Section titled “See Also”- record TextElement
- namespace Stellar.Abstractions.Services