libgdx API

com.badlogic.gdx.graphics.g2d
Class BitmapFont.BitmapFontData

java.lang.Object
  extended by com.badlogic.gdx.graphics.g2d.BitmapFont.BitmapFontData
Enclosing class:
BitmapFont

public static class BitmapFont.BitmapFontData
extends java.lang.Object


Field Summary
 float ascent
           
 float capHeight
           
 float descent
           
 float down
           
 boolean flipped
           
 FileHandle fontFile
           
 BitmapFont.Glyph[][] glyphs
           
 java.lang.String imagePath
           
 float lineHeight
           
 float scaleX
           
 float scaleY
           
 float spaceWidth
           
 float xHeight
           
 
Constructor Summary
BitmapFont.BitmapFontData()
          Use this if you want to create BitmapFontData yourself, e.g.
BitmapFont.BitmapFontData(FileHandle fontFile, boolean flip)
           
 
Method Summary
 BitmapFont.Glyph getFirstGlyph()
           
 FileHandle getFontFile()
           
 BitmapFont.Glyph getGlyph(char ch)
           
 java.lang.String getImagePath()
           
 void setGlyph(int ch, BitmapFont.Glyph glyph)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imagePath

public java.lang.String imagePath

fontFile

public FileHandle fontFile

flipped

public boolean flipped

lineHeight

public float lineHeight

capHeight

public float capHeight

ascent

public float ascent

descent

public float descent

down

public float down

scaleX

public float scaleX

scaleY

public float scaleY

glyphs

public final BitmapFont.Glyph[][] glyphs

spaceWidth

public float spaceWidth

xHeight

public float xHeight
Constructor Detail

BitmapFont.BitmapFontData

public BitmapFont.BitmapFontData()
Use this if you want to create BitmapFontData yourself, e.g. from stb-truetype of FreeType.


BitmapFont.BitmapFontData

public BitmapFont.BitmapFontData(FileHandle fontFile,
                                 boolean flip)
Method Detail

setGlyph

public void setGlyph(int ch,
                     BitmapFont.Glyph glyph)

getFirstGlyph

public BitmapFont.Glyph getFirstGlyph()

getGlyph

public BitmapFont.Glyph getGlyph(char ch)

getImagePath

public java.lang.String getImagePath()

getFontFile

public FileHandle getFontFile()

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)