IPixelFontGlyphs

Description

interface Tinman.Engine.Drawing.IPixelFontGlyphs

Derived from

IDisposable

Base interface for classes that provide glyph pixel images for fonts.

Public / Methods

Glyph


public method Glyph → (1)

codePoint in : int32

The Unicode code point for which to generate a glyph.

returns → ColorBuffer

The pixel image of the font glyph or null if codePoint in is not defined by the font (see Glyphs).

Generates a pixel image for the given font glyph.

Public / Attributes

Glyphs


public attribute Glyphs → (get)

value : ISortedSetConst<int32>

[not-null]
The Unicode code points for which it is known that a glyph is defined by the font.

Returns the Unicode code points for which the font defines a glyph.

For all characters not contained in the returned set, the Glyph method should return null. For each character that is contained, the method should return a ColorBuffer object, which should contain non-empty pixel content.