Vedran Ljubovic wrote:
>> Well... if the OP wants to globally change the default font size
>> - which in re-reading seems to be the case - then FL_NORMAL_SIZE
>> is the "answer"... It has global scope, IIRC, so all you need do
>> is, in your main, before any widgets are created, put:
>>
>> extern int FL_NORMAL_SIZE;
>>
>> then...
>>
>> FL_NORMAL_SIZE = <something>;
>>
>>
>> And that ought to do the trick. Possibly!
>>
>> Any good?
>
> It works! Thanks :) I missed the extern tag...
Ya, that's a cool trick. I keep forgetting it myself.
It's something of a 'workaround' for this STR item:
http://fltk.org/str.php?L1029
I'm still +1 on the idea of making an official Fl::XXX() method
for not only setting the default font face/size, but also a way
to apply an 'offset size' to all fonts, eg. Fl::fontsize_offset(4);
which could add 4 points to the font size of all fonts.
Notebook computers with ultra-small pixels are making this a real
necessity for apps to allow the user to increase font sizes globally;
sizes that look fine on normal screens are impossible to read on some
of these new 'ultrafine' displays that have many more pixels per inch.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk