StyleInformation.font

Returns the cached font object associated with the widget, if overridden by the Style, or the VisualTheme if not.

struct StyleInformation
@property
OperatingSystemFont
font
()

Meta

History

Prior to March 21, 2022 (dub v10.7), font went through opDispatch, which did not use the cache. You can now call it repeatedly without guilt.