APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.tools.hiero

public Class BMFontUtil

extends Object
Class Inheritance
Imports
java.awt.Font, .Rectangle, java.awt.font.GlyphVector, java.awt.image.BufferedImage, .WritableRaster, java.io.File, .FileOutputStream, .IOException, .PrintStream, java.nio.Buffer, .IntBuffer, java.util.ArrayList, .Collections, .Comparator, .Iterator, .List, javax.imageio.ImageIO, org.lwjgl.BufferUtils, org.lwjgl.opengl.GL11, .GL12, com.badlogic.gdx.Gdx, com.badlogic.gdx.tools.hiero.unicodefont.Glyph, .GlyphPage, .UnicodeFont, com.badlogic.gdx.utils.IntIntMap

Author
Nathan Sweet

Field Summary

Modifier and TypeField and Description
private final UnicodeFont

Constructor Summary

AccessConstructor and Description
public
BMFontUtil(UnicodeFont unicodeFont)

Method Summary

Modifier and TypeMethod and Description
private Glyph
getGlyph(char c)

Returns: May be null.

private int
getGlyphCode(Font font, int codePoint)

public void
save(File outputBMFontFile)

pack-priv void
writeGlyph(PrintStream out, int pageWidth, int pageHeight, int pageIndex, Glyph glyph)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

unicodeFontback to summary
private final UnicodeFont unicodeFont

Constructor Detail

BMFontUtilback to summary
public BMFontUtil(UnicodeFont unicodeFont)

Method Detail

getGlyphback to summary
private Glyph getGlyph(char c)
Returns:Glyph

May be null.

getGlyphCodeback to summary
private int getGlyphCode(Font font, int codePoint)
saveback to summary
public void save(File outputBMFontFile) throws IOException
writeGlyphback to summary
pack-priv void writeGlyph(PrintStream out, int pageWidth, int pageHeight, int pageIndex, Glyph glyph)