Kerning properties for letter-spacing of a PixelFont.
struct
|
Kerning
|
implements
|
IEquatable<Kerning>
|
Default kerning values.
public
static
readonly
field
|
Default
|
||
type
|
Kerning
|
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.
No kerning; glyph images will be aligned according to their bounding boxes.
public
static
readonly
field
|
None
|
||
type
|
Kerning
|
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.
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.
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
method
|
Equals
(Kerning other)
|
||
type
|
bool
|
||
params
|
other
|