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

struct Kerning in Tinman.AddOns.Rendering

Kerning properties for letter-spacing of a PixelFont.

struct Kerning implements IEquatable<Kerning>

Public / Attributes

Default

Default kerning values.

public static readonly field Default
type Kerning

Maximum

Maximum kerning distance, in pixels.

public readonly field Maximum
type int32

Remarks:

This limits the maximum kerning value that is produced during glyph matching. Use this value to avoid too large kerning, e.g. between T and o characters.

None

No kerning; glyph images will be aligned according to their bounding boxes.

public static readonly field None
type Kerning

Overlap

The allowed kerning overlap in pixels.

public readonly field Overlap
type float32

Remarks:

A bigger overlap value will produce in greater kerning values during glyph matching. This will make inter-character spacing more uniform but also narrow. Counteract this by using a negative Undercut.

Undercut

Fixed undercut offset to apply after kerning.

public readonly field Undercut
type int32

Remarks:

The fixed undercut is always applied when advancing from one glyph to the next. Use positive values to decrease letter-spacing; use negative values to increase letter-spacing.

Public / Constructors

Kerning

Creates a new instance of Kerning.

public constructor Kerning (float32 overlap, int32 undercut = 0, int32 maximum = Maths.MaxInt)
params overlap [>=0] The allowed kerning overlap in pixels. See Overlap.
  undercut Fixed undercut offset to apply after kerning. See Undercut.
  maximum [>=0] Maximum kerning distance, in pixels. See Maximum.

Public / Methods

Equals

public method Equals (Kerning other)
type bool
params other