FreeTypeFont

Undocumented in source.

Constructors

this
this(uint height, Owner o)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

createFromFile
void createFromFile(string filename)
Undocumented in source. Be warned that the author may not have intended to support it.
createFromMemory
void createFromMemory(ubyte[] buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
glyphAdvance
int glyphAdvance(dchar code)
Undocumented in source. Be warned that the author may not have intended to support it.
loadChar
dchar loadChar(dchar code)
Undocumented in source. Be warned that the author may not have intended to support it.
loadGlyph
uint loadGlyph(dchar code, GLuint texId)
Undocumented in source. Be warned that the author may not have intended to support it.
preloadASCII
void preloadASCII()
Undocumented in source. Be warned that the author may not have intended to support it.
prepareVAO
void prepareVAO()
Undocumented in source. Be warned that the author may not have intended to support it.
render
void render(RenderingContext* rc, Color4f color, string str)
Undocumented in source. Be warned that the author may not have intended to support it.
renderGlyph
float renderGlyph(dchar code, float shift)
Undocumented in source. Be warned that the author may not have intended to support it.
width
float width(string str)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

canRender
bool canRender;
Undocumented in source.
eao
GLuint eao;
Undocumented in source.
fragmentShader
GLuint fragmentShader;
Undocumented in source.
fs
string fs;
Undocumented in source.
ftFace
FT_Face ftFace;
Undocumented in source.
ftLibrary
FT_Library ftLibrary;
Undocumented in source.
glyphColorLoc
GLint glyphColorLoc;
Undocumented in source.
glyphPositionLoc
GLint glyphPositionLoc;
Undocumented in source.
glyphScaleLoc
GLint glyphScaleLoc;
Undocumented in source.
glyphTexcoordScaleLoc
GLint glyphTexcoordScaleLoc;
Undocumented in source.
glyphTextureLoc
GLint glyphTextureLoc;
Undocumented in source.
glyphs
Dict!(Glyph, dchar) glyphs;
Undocumented in source.
indices
uint[3][2] indices;
Undocumented in source.
modelViewMatrixLoc
GLint modelViewMatrixLoc;
Undocumented in source.
projectionMatrixLoc
GLint projectionMatrixLoc;
Undocumented in source.
shaderProgram
GLuint shaderProgram;
Undocumented in source.
tbo
GLuint tbo;
Undocumented in source.
texcoords
Vector2f[4] texcoords;
Undocumented in source.
vao
GLuint vao;
Undocumented in source.
vbo
GLuint vbo;
Undocumented in source.
vertexShader
GLuint vertexShader;
Undocumented in source.
vertices
Vector2f[4] vertices;
Undocumented in source.
vs
string vs;
Undocumented in source.

Inherited Members

From Font

height
float height;
Undocumented in source.
width
float width(string str)
Undocumented in source.
render
void render(RenderingContext* rc, Color4f color, string str)
Undocumented in source.

Meta