Package de.coreengine.rendering.model
Class Font
- java.lang.Object
- 
- de.coreengine.rendering.model.Font
 
- 
 public class Font extends Object Class that represent a font to render text- Author:
- Darius Dinger
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CharactergetCharacter(int ascii)Getting character for specific asciifloatgetLineHeight()StringgetTextureAtlas()VertexArrayObjectgetVao()
 
- 
- 
- 
Constructor Detail- 
Fontpublic Font(String textureAtlas, HashMap<Integer,Character> characters, VertexArrayObject vao, float lineHeight) Creating new font- Parameters:
- textureAtlas- TextureData atlas image of the font
- characters- Characters of the font sirtet by ascii
- vao- Vertex array object of the character models
- lineHeight- Height of a line of text
 
 
- 
 - 
Method Detail- 
getTextureAtlaspublic String getTextureAtlas() - Returns:
- TextureData atlas image of the font
 
 - 
getCharacterpublic Character getCharacter(int ascii) Getting character for specific ascii- Parameters:
- ascii- Ascii of the char
- Returns:
- Character of ascii
 
 - 
getVaopublic VertexArrayObject getVao() - Returns:
- VAO of the font chars
 
 - 
getLineHeightpublic float getLineHeight() - Returns:
- Height of a line of text
 
 
- 
 
-