Builds pixels fonts that can be loaded with LoadFontFrom.
sealed class
|
PixelFontBuilder
|
implements
|
IBuilder<ColorBuffer>
|
The font baseline, in pixels.
public
property
|
Baseline
{
get
set
}
|
||
type
|
int32
|
||
value
|
|
The
font
baseline.
If
0 ,
the
font
baseline
with
be
equal
to
the
font
height.
|
Creates a new instance of PixelFontBuilder.
public
constructor
|
PixelFontBuilder
()
|
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
|
|
The font object. |
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. |
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. |