Class PngFontSource
Describes the font files used by the PNG renderer for terminal text or title text.
public sealed class PngFontSource
- Inheritance
-
PngFontSource
- Inherited Members
Properties
BundledCascadiaMono
Bundled Cascadia Mono regular/bold/italic/bold-italic font files.
public static PngFontSource BundledCascadiaMono { get; }
Property Value
BundledNotoSans
Bundled Noto Sans regular/bold/italic/bold-italic font files.
public static PngFontSource BundledNotoSans { get; }
Property Value
DisplayName
Human-readable font name used in diagnostics.
public string DisplayName { get; }
Property Value
Methods
FromFile(string, string?, string?, string?, string?)
Creates a font source from caller-provided font files. The regular font path is required; bold,
italic, and bold-italic paths are optional but required at render time if those styles are used.
public static PngFontSource FromFile(string regularPath, string? boldPath = null, string? italicPath = null, string? boldItalicPath = null, string? displayName = null)
Parameters
Returns
Exceptions
- ArgumentException
regularPathis null, empty, or whitespace.