From: Kevin S. <kev...@ya...> - 2001-09-24 15:35:35
|
--- Kent Dahl <ke...@st...> wrote: > Is there any way of setting the default fontsize in Ruby-Fltk? > Changing the FLTK itself isn't really a viable option. That's a great idea (if I understand you correctly). We could have a method, something like Fltk::default_fontsize, which would return the default, or allow you to set a new default. All widgets that got created could automatically invoke fontsize with this value. I think we would have to implement this in C++, and not in the Ruby layer. We could easily add it to our contructor body, since we only have a couple of them. And the Fltk initialize could either pick a default default, or create a raw Fltk widget, ask for the fontsize, and then destroy the widget. At some point, we could also add features to set default colors and other options this way. Of course, with Fltk2, themes should solve all of this, so we don't want to do too much with it right now. What do you think? Kevin P.S. to Kent: Thanks for the code contribution! One of our goals was that it be quick and easy to enhance and modify. __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com |