provaengine v0.2.0-alpha (2018-03-19T00:32:13Z)
Dub
Repo
Font
prova
graphics
text
font
final
class
Font {
package static
FT_Library
ftlibrary
;
immutable
int
size
;
immutable
int
ascentLine
;
immutable
int
descentLine
;
immutable
bool
hasKerning
;
float
lineHeight
;
this
(string path, int size);
Texture
texture
[@property getter];
bool
hasGlyph
(int character);
Glyph
getGlyph
(int character);
Vector2
getKerning
(int leftChar, int rightChar);
Vector2
measureString
(string text);
}
Constructors
this
this
(string path, int size)
Members
Functions
getGlyph
Glyph
getGlyph
(int character)
getKerning
Vector2
getKerning
(int leftChar, int rightChar)
hasGlyph
bool
hasGlyph
(int character)
measureString
Vector2
measureString
(string text)
Properties
texture
Texture
texture
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
Static variables
ftlibrary
FT_Library
ftlibrary
;
Undocumented in source.
Variables
ascentLine
int
ascentLine
;
Undocumented in source.
descentLine
int
descentLine
;
Undocumented in source.
hasKerning
bool
hasKerning
;
Undocumented in source.
lineHeight
float
lineHeight
;
size
int
size
;
Meta
Source
See Implementation
prova
graphics
text
font
classes
Font