Add 6 point font and enable it.

This commit is contained in:
Gaute Lindkvist
2020-06-05 12:59:22 +02:00
parent f6e3dfffbd
commit 0f60bed64a
3 changed files with 595 additions and 4 deletions

View File

@@ -30,7 +30,9 @@
//--------------------------------------------------------------------------------------------------
caf::FixedAtlasFont::FontSize mapToAtlasFontSize( int pointSize )
{
if ( pointSize < 10 )
if ( pointSize >= 6 && pointSize < 8 )
return caf::FixedAtlasFont::POINT_SIZE_6;
else if ( pointSize >= 8 && pointSize < 10 )
return caf::FixedAtlasFont::POINT_SIZE_8;
else if ( pointSize >= 10 && pointSize < 12 )
return caf::FixedAtlasFont::POINT_SIZE_10;