Skip to content
Version 2.11.0
↓ Get the launcher

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; }