DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1130
Version: 2.0-feature


I'd opened STR#1029 a few months before recommending functions be added to
make this clearer, so these two STRs are related.

There is a way to set the default font, it's just non-intuitive:
http://fltk.org/newsgroups.php?s6582+gfltk.general+v6588+T

You're right it should be more boldly advertised, which is why I'm leaving
this open. At very least, the functions that get the font face/size should
reference the way to change defaults with a "See Also". Possibly a FAQ
should be added as well.

Regarding a file like ~/.fltk/defaults:
This is a direction I personally know Bill (Spitzak) did NOT want to go.
IIRC, Bill did not like the problems that files like ~/.Xdefaults (the X
windows equiv) caused, citing among other things how such a file can
affect ALL fltk apps, and can cause app-specific problems that are very
hard to debug, as users often won't report such customizations, having
long forgot they were there when reporting bugs. I agree with this, and
would strongly lobby against it.

Design-wise, FLTK likes to handle changing such things via the command
line (eg. Fl_Window::show(argc,argv)), so that might be a way to supply
this. However, changing the default font size via the command line would
surely break most apps, since FLTK doesn't reoriented widget layouts when
font sizes are changed.


Link: http://www.fltk.org/str.php?L1130
Version: 2.0-feature

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

Reply via email to