@Environment(value=CLIENT) public class BitmapFont extends Object implements Font
Modifier and Type | Class and Description |
---|---|
(package private) static class |
BitmapFont.BitmapFontGlyph |
static class |
BitmapFont.Loader |
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<BitmapFont.BitmapFontGlyph> |
glyphs |
private NativeImage |
image |
private static Logger |
LOGGER |
Modifier | Constructor and Description |
---|---|
private |
BitmapFont(NativeImage image,
it.unimi.dsi.fastutil.ints.Int2ObjectMap<BitmapFont.BitmapFontGlyph> glyphs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
RenderableGlyph |
getGlyph(int codePoint) |
it.unimi.dsi.fastutil.ints.IntSet |
getProvidedGlyphs()
Returns the set of code points for which this font can provide glyphs.
|
private static final Logger LOGGER
private final NativeImage image
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<BitmapFont.BitmapFontGlyph> glyphs
private BitmapFont(NativeImage image, it.unimi.dsi.fastutil.ints.Int2ObjectMap<BitmapFont.BitmapFontGlyph> glyphs)
public void close()
@Nullable public RenderableGlyph getGlyph(int codePoint)
public it.unimi.dsi.fastutil.ints.IntSet getProvidedGlyphs()
getProvidedGlyphs
in interface Font