public class Font
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private static EmptyGlyph |
EMPTY_GLYPH |
private TexturedGlyph |
fallbackGlyph |
private static IGlyph |
GLYPH_ADVANCE_SPACE |
private java.util.List<IGlyphProvider> |
glyphProviders |
private it.unimi.dsi.fastutil.chars.Char2ObjectMap<IGlyph> |
glyphs |
private it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.chars.CharList> |
glyphsByWidth |
private ResourceLocation |
id |
private static org.apache.logging.log4j.Logger |
LOGGER |
private it.unimi.dsi.fastutil.chars.Char2ObjectMap<TexturedGlyph> |
mapTexturedGlyphs |
private static java.util.Random |
RANDOM |
private TextureManager |
textureManager |
private java.util.List<FontTexture> |
textures |
private TexturedGlyph |
whiteGlyph |
Constructor and Description |
---|
Font(TextureManager textureManagerIn,
ResourceLocation resourceLocationIn) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private TexturedGlyph |
createTexturedGlyph(IGlyphInfo glyphInfoIn) |
private void |
deleteTextures() |
IGlyph |
findGlyph(char charIn) |
private void |
func_230154_b_() |
TexturedGlyph |
getGlyph(char character) |
private IGlyphInfo |
getGlyphInfo(char p_212455_1_) |
TexturedGlyph |
getWhiteGlyph() |
TexturedGlyph |
obfuscate(IGlyph glyph) |
void |
setGlyphProviders(java.util.List<IGlyphProvider> glyphProvidersIn) |
private static final org.apache.logging.log4j.Logger LOGGER
private static final EmptyGlyph EMPTY_GLYPH
private static final IGlyph GLYPH_ADVANCE_SPACE
private static final java.util.Random RANDOM
private final TextureManager textureManager
private final ResourceLocation id
private TexturedGlyph fallbackGlyph
private TexturedGlyph whiteGlyph
private final java.util.List<IGlyphProvider> glyphProviders
private final it.unimi.dsi.fastutil.chars.Char2ObjectMap<TexturedGlyph> mapTexturedGlyphs
private final it.unimi.dsi.fastutil.chars.Char2ObjectMap<IGlyph> glyphs
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<it.unimi.dsi.fastutil.chars.CharList> glyphsByWidth
private final java.util.List<FontTexture> textures
public Font(TextureManager textureManagerIn, ResourceLocation resourceLocationIn)
public void setGlyphProviders(java.util.List<IGlyphProvider> glyphProvidersIn)
public void close()
close
in interface java.lang.AutoCloseable
private void func_230154_b_()
private void deleteTextures()
public IGlyph findGlyph(char charIn)
private IGlyphInfo getGlyphInfo(char p_212455_1_)
public TexturedGlyph getGlyph(char character)
private TexturedGlyph createTexturedGlyph(IGlyphInfo glyphInfoIn)
public TexturedGlyph obfuscate(IGlyph glyph)
public TexturedGlyph getWhiteGlyph()