#include <wg_fontengine.h>
Definition at line 43 of file wg_fontengine.h.
wGui::CFontEngine::CFontEngine | ( | const std::wstring & | sFontFileName, | |
unsigned char | FontSize | |||
) |
Construct a new CFont object, using the specified font For most cases, there is no need to directly instantiate a CFontEngine object. CApplication provides a GetFontEngine() method which should be used
sFontFileName | The file that contains a file | |
FontSize | The size of the font (in points) |
Definition at line 38 of file wg_fontengine.cpp.
References wGui::APP_LOG_INFO, wGui::CApplication::GetApplicationLog(), wGui::CApplication::Instance(), stdex::itoa(), m_bFTLibraryLoaded, m_FontFace, m_FTLibrary, and stdex::ToMbString().
FT_BitmapGlyphRec * wGui::CFontEngine::RenderGlyph | ( | wchar_t | Char | ) |
Renders the specified character
Char | The character to render |
Definition at line 67 of file wg_fontengine.cpp.
References m_CachedGlyphMap, and m_FontFace.
Referenced by wGui::CRenderedString::Draw().
FT_Glyph_Metrics * wGui::CFontEngine::GetMetrics | ( | wchar_t | Char | ) |
Returns the metrics for a specified character
Char | The character to render |
Definition at line 90 of file wg_fontengine.cpp.
References m_CachedMetricsMap, and m_FontFace.
Referenced by wGui::CRenderedString::GetMaxFontHeight(), wGui::CRenderedString::GetMaxFontWidth(), and wGui::CRenderedString::GetMetrics().