Skip to main content

CommonGetFont

Callable

  • CommonGetFont(size: any): string

  • Memoized getter function. Returns a font string specifying the player's preferred font and the provided size. This is memoized as it is called on every frame in many cases.


    Parameters

    • size: any

      The font size that should be specified in the returned font string

    Returns string

    • A font string specifying the requested font size and the player's preferred font stack. For example: 12px "Courier New", "Courier", monospace

Index

Methods

Methods

clearCache

  • clearCache(): void
  • Clears the cache of the memoized function


    Returns void

Page Options