Appearance: Increase max font size to 24 and add 16 to the list.

The list went up to 24 already, but was capped by the previous max size
of 18. Adding 16 to the arbitrary list of font sizes closes the rather
large gap between font sizes 14 and 18 that were already in the list.
Providing a slider or text field for the font size would probably be
better in the long run.
This commit is contained in:
Michael Lotz 2014-10-18 19:17:48 +02:00
parent 8635eef042
commit cf302a3861
1 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@
// only on exit
static const float kMinSize = 8.0;
static const float kMaxSize = 18.0;
static const float kMaxSize = 24.0;
// private font API
@ -251,7 +251,7 @@ FontSelectionView::CreateFontsMenuBarLayoutItem()
void
FontSelectionView::_BuildSizesMenu()
{
const int32 sizes[] = {7, 8, 9, 10, 11, 12, 13, 14, 18, 21, 24, 0};
const int32 sizes[] = {7, 8, 9, 10, 11, 12, 13, 14, 16, 18, 21, 24, 0};
// build size menu
for (int32 i = 0; sizes[i]; i++) {