Skip to content
ConsoleMonster

API Reference

Class

ConsoleFontWatcher

Namespace ConsoleMonster.Output
Assembly ConsoleMonster
Modifiers sealed

Polls the current Windows console font without creating a thread or timer.

Inheritance

  • Object
  • ConsoleFontWatcher

Constructors

ConsoleFontWatcher 2 overloads
public ConsoleFontWatcher() #

Creates a watcher with a one-second polling interval.

public ConsoleFontWatcher(TimeSpan pollingInterval) #

Creates a watcher with the specified polling interval.

Parameters

pollingInterval System.TimeSpan requiredposition: 0
Minimum time between native font reads; nonpositive values use one second.

Methods

public Boolean CheckChanged(out String? face, out Int32 height) #
Returns: Boolean

Reads the font at most once per interval and reports a changed face or height.

Parameters

face System.String? requiredposition: 0
The current face when a font reading succeeds; otherwise null.
height System.Int32 requiredposition: 1
The current font height when a font reading succeeds; otherwise zero.

Returns

True when a successful reading differs from the previous successful reading.