TerminalFontResolver

Custom host font resolver policy.

Allows embedding environments (like the IntelliJ platform) to supply their own font lookup, caching, and fallback resolution strategies (e.g. leveraging the IDE's internal font cascading/linking utilities or OS-native services).

Functions

Link copied to clipboard
abstract fun resolveFallbackFont(codePoint: Int, style: Int, size2D: Float): Font?

Resolves a fallback font that can display the given codePoint with the requested style and size2D size. Returns null if no fallback font could be resolved.

abstract fun resolveFallbackFont(text: String, style: Int, size2D: Float): Font?

Resolves a fallback font that can display the given text run with the requested style and size2D size. Returns null if no fallback font could be resolved.