PixelFont

Description

sealed class Tinman.Engine.Drawing.PixelFont

Derived from

ResourceBase abstract
IPixelFontInfo

A pixel-based font resource.

Public / Constants

Handle​Default


public static readonly attribute HandleDefault → (IResourceHandle)

A resource handle that wraps Graphics.DefaultFont.

Handle​Default​Proportional


public static readonly attribute HandleDefaultProportional → (IResourceHandle)

A resource handle for a variant of Graphics.DefaultFont that has proportional letters and decimal digits.

Handle​Small


public static readonly attribute HandleSmall → (IResourceHandle)

A resource handle for a small pixel font.

Public / Constructors

Handle​File


public static method HandleFile → (1)

path in : Path

[not-null]
Path to font file.

returns → IResourceHandle

The font handle.

Creates a font handle for the given font file.

Handle​Monospaced


public static method HandleMonospaced → (2)

pixelFont in : IResourceHandle

[not-null]
The original font handle.

characters in : IBag<char>

The characters that shall become monospaced. If null, all characters will become monospaced.

returns → IResourceHandle

The font handle.

Creates a font handle that creates a monospaced variant of the given font.

Public / Methods

Monospaced


[OwnerReturn] [OwnerThis]
public method Monospaced → (1)

characters in : IBag<char>

The set of characters to make monospaced or null to make all characters monospaced.

returns → PixelFont

The resulting IPixelFontInfo object (may be this).

Adjusts selected font glyphs in order to make them monospaced.