Added Font initializer

Former-commit-id: 9d64e5f28508ebfafe7504a9ba47f57a970e77ce
This commit is contained in:
Lynix
2015-01-17 22:11:29 +01:00
parent c0995d1739
commit 77db6f5dd3
3 changed files with 28 additions and 2 deletions

View File

@@ -328,6 +328,14 @@ unsigned int NzFont::GetDefaultMinimumStepSize()
return s_defaultMinimumSizeStep;
}
bool NzFont::Initialize()
{
s_defaultGlyphBorder = 1;
s_defaultMinimumSizeStep = 1;
return true;
}
void NzFont::SetDefaultGlyphBorder(unsigned int borderSize)
{
s_defaultGlyphBorder = borderSize;
@@ -346,6 +354,11 @@ void NzFont::SetDefaultMinimumStepSize(unsigned int minimumSizeStep)
s_defaultMinimumSizeStep = minimumSizeStep;
}
void NzFont::Uninitialize()
{
}
nzUInt64 NzFont::ComputeKey(unsigned int characterSize, nzUInt32 style) const
{
// On prend le pas en compte
@@ -519,5 +532,5 @@ const NzFont::Glyph& NzFont::PrecacheGlyph(GlyphMap& glyphMap, unsigned int char
}
NzFontLoader::LoaderList NzFont::s_loaders;
unsigned int NzFont::s_defaultGlyphBorder = 1;
unsigned int NzFont::s_defaultMinimumSizeStep = 1;
unsigned int NzFont::s_defaultGlyphBorder;
unsigned int NzFont::s_defaultMinimumSizeStep;