This project is read-only.

Thinking of changing sizing logic, opinions?

May 20, 2016 at 7:09 PM
This is discussed in issue 562. Currently, the programmer or user can change the size of the displayed bitmaps to 16, 24, 32 or 48 pixels. However, the fontSize never changes from what the programmer sets it to in the painter.

What I am proposing is to keep the fontSize in sync with the bitMapSize as follows:

16 pixels => 8 point
24 pixels => 10 point
32 pixels => 12 point
48 pixels => 14 point

So, if the programmer or user changes the bitmaps to 24 pixels, the font changes to 10pt.

As part of this change, I would remove the #fontSize property from the programmer's purview. Or, I could remove #bitMapSize and use #fontSize to allow the programmer to change the size of the toolbar.

Opinions?
May 26, 2016 at 7:28 PM
Since I got no feedback, nor objection, I went ahead and did this. As noted in the original post #fontSize is now tied to #bitMapSize and vice versa as follows:

16 pixels <=> 8 point
24 pixels <=> 10 point
32 pixels <=> 12 point
48 pixels <=> 14 point

The way this is determined from the painter values is as follows:

16 pixels = 1, 24 pixels = 2, 32 pixels = 3, 48 pixels = 4
8 point = 1, 10 point = 2, 12 point = 3, 14 point = 4

Final size settings is equal to the max of the two settings.

i.e. #bitMapSize = 24, #fontSize = 12, then #bitMapSize = 32 and #fontSize = 12
i.e. #bitMapSize = 24, #fontSize = 8, then #bitMapSize = 24 and #fontSize = 10

Then if the user changes the size using the right-Click menu, the values are kept in sync.