> It's a question to behave consistently if we scale/zooned the widgets 
> size/position we should as well do the same with it's font size.

Why?
The behaviour you describe is consistent, and is pretty much what every
toolkit does. Indeed, I can't, off-hand, think of any that scale label
font sizes as their containing widgets change size, though I guess a few
do allow that as a (non-default) optional behaviour?


The setting of font sizes is predominantly an accessibility issue, not a
simple cosmetic one, so changing the selected font size is seldom a wise
choice.
I know some users who will rant and roar if your change their font
settings in any way (particularly folk using screen readers, or with
poor eyesight, for example.)

<note>
That said, the default font settings in fltk are too small on some
modern high-DPI displays, so some means of setting the default font
appropriately is probably useful.

At present, in code where I care about the minimum font size, I attempt
to do this by trying to determine the display DPI at app start-up, then
I overwrite the global fontsize setting held in FL_NORMAL_SIZE (which
looks like a define, but is actually a global var originating in
Fl_Widget.cxx)

E.g. 

        /** Change Default font size for widgets */
        extern Fl_Fontsize FL_NORMAL_SIZE;
                :
                :
        my_new_size = 14;
                :
                :
        // find the display DPI...
        my_new_size = <whatever...>;
                :
                :
        FL_NORMAL_SIZE = my_new_size;
                :
        // now create my widgets...
                :

The default value for FL_NORMAL_SIZE is 14, but you can change it.
I always change it *before* creating any widgets though - I do not know
if changing it will dynamically scale the widget font sizes...
</note>

However, making the font smaller (or bigger) because the button is
shrinking (growing) - that I am not convinced by at all.

Or - am I not understanding what you are suggesting?


SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to