Renamed TextStyle_None to TextStyle_Regular
Former-commit-id: 3bd44c785f8c6f011bcade1242b051d8662287d2
This commit is contained in:
parent
9d83f3f474
commit
bdaa4f2838
|
|
@ -230,7 +230,7 @@ enum nzTextAlign
|
|||
|
||||
enum nzTextStyleFlags
|
||||
{
|
||||
nzTextStyle_None = 0x0,
|
||||
nzTextStyle_Regular = 0x0,
|
||||
|
||||
nzTextStyle_Bold = 0x1,
|
||||
nzTextStyle_Italic = 0x2,
|
||||
|
|
|
|||
|
|
@ -203,7 +203,7 @@ const NzFont::SizeInfo& NzFont::GetSizeInfo(unsigned int characterSize) const
|
|||
sizeInfo.underlineThickness = m_data->QueryUnderlineThickness(characterSize);
|
||||
|
||||
NzFontGlyph glyph;
|
||||
if (m_data->ExtractGlyph(characterSize, ' ', nzTextStyle_None, &glyph))
|
||||
if (m_data->ExtractGlyph(characterSize, ' ', nzTextStyle_Regular, &glyph))
|
||||
sizeInfo.spaceAdvance = glyph.advance;
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ namespace
|
|||
bool SupportsStyle(nzUInt32 style) const override
|
||||
{
|
||||
///TODO
|
||||
return style == nzTextStyle_None || style == nzTextStyle_Bold;
|
||||
return style == nzTextStyle_Regular || style == nzTextStyle_Bold;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Reference in New Issue