g4d ~master (2018-08-21T01:55:31Z)
Dub
Repo
Font
g4d
ft
font
An object of Font.
class
Font {
protected static
FT_Library
_library
;
static
void
initLibrary
();
protected static
size_t
_fontCount
;
protected
FT_Face
_face
;
this
(string path);
~this
();
Glyph
createGlyph
(bool needbmp);
Glyph
retrieveMetrics
(vec2i sz, dchar c);
Glyph
render
(vec2i sz, dchar c);
}
Constructors
this
this
(string path)
Destructor
~this
~this
()
Members
Functions
createGlyph
Glyph
createGlyph
(bool needbmp)
Undocumented in source. Be warned that the author may not have intended to support it.
render
Glyph
render
(vec2i sz, dchar c)
Renders the character.
retrieveMetrics
Glyph
retrieveMetrics
(vec2i sz, dchar c)
Retrieves metrics only.
Static functions
initLibrary
void
initLibrary
()
Undocumented in source. Be warned that the author may not have intended to support it.
Static variables
_fontCount
size_t
_fontCount
;
Undocumented in source.
_library
FT_Library
_library
;
Undocumented in source.
Variables
_face
FT_Face
_face
;
Undocumented in source.
Meta
Source
See Implementation
g4d
ft
font
classes
Font
FontFace
structs
Glyph
An object of Font.