roberts
Group: Members
Posts: 4983
Joined: Oct. 2003 |
|
Posted: June 09 2008,15:15 |
|
Note to Lua/FLtk script writers:
This brings to light that when constructing very small GUIs or when selecting font sizes via labelsize, then it is best to set the font required by your script and not rely on user selectable .luafltkrc
You can set the font for your script by inserting the following line:
Fl:set_font(0,"fixed") or Fl:set_font(0,"smoothansi") or whatever font is required.
For example in dmix, I placed it after the require: require("fltk") Fl:set_font(0,"smoothansi") vs = {} v = {} ...
Still not sure why all the labelsize are included in this script but labelsize(4) to labelsize(22) caused the wide variation of fonts when a scable font (helvetica) is used, as in .luafltkrc
Edited by roberts on June 09 2008,15:16
|