public interface ConstFont extends Const
Font.
It is not recommended to be implemented outside of the JSFML API.Const| Modifier and Type | Method and Description |
|---|---|
Glyph |
getGlyph(int unicode,
int characterSize,
boolean bold)
Gets a glyph information structure from the font.
|
int |
getKerning(int first,
int second,
int characterSize)
Gets the kerning offset between two glyphs.
|
int |
getLineSpacing(int characterSize)
Gets the line spacing of the font.
|
ConstTexture |
getTexture(int characterSize)
Retrieves the texture containing the font's glyphs.
|
Glyph getGlyph(int unicode, int characterSize, boolean bold)
unicode - the unicode (UTF-32) of the character to retrieve the glyph for.characterSize - the character size in question.bold - true if the bold glyph version should be returned,
false for the regular version.Glyph representing the given unicode character.int getKerning(int first,
int second,
int characterSize)
first - the unicode (UTF-32) of the first character.second - the unicode (UTF-32) of the second character.characterSize - the character size in question.int getLineSpacing(int characterSize)
characterSize - the character size in question.ConstTexture getTexture(int characterSize)
characterSize - the character size in question.