TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class PixelFontBuilder in Tinman.AddOns.Rendering

Builds pixels fonts that can be loaded with LoadFontFrom.

sealed class PixelFontBuilder implements IBuilder<ColorBuffer>

Public / Attributes

Baseline

The font baseline, in pixels.

public property Baseline { get set }
type int32
value [>=0] The font baseline. If 0, the font baseline with be equal to the font height.

Public / Constructors

PixelFontBuilder

Creates a new instance of PixelFontBuilder.

public constructor PixelFontBuilder ()

Public / Methods

Build

Finishes the build process and returns the resulting object.

[OwnerReturn, OwnerThis]
public method Build ()
type ColorBuffer
returns The resulting object.
implements IBuilder.Build

Creates a new instance of PixelFont.

[OwnerReturn]
public method Build (Graphics graphics, Kerning kerning)
type PixelFont
params graphics [not-null] The graphics object to use.
  kerning The font kerning settings to use.
returns [not-null] The font object.

Glyph

Adds a glyph to the font.

public method Glyph (char character, ColorBuffer pixels)
params character The glyph character, built of black pixels. White pixels and transparent pixels do not belong to the glyph. Any shades in between can be used for anti-aliasing.
  pixels [not-null] The glyph pixels.

UseBaselineOf

Uses the height of the given character glyph as font baseline.

public method UseBaselineOf (char character)
params character The character, must have been added via Glyph earlier.