FLTK logo

Re: [RFE] STR #1029: Fl::font(), Fl::size(), etc. for changing defaults

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.bugs  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [RFE] STR #1029: Fl::font(), Fl::size(), etc. for changing defaults Matthias Melcher Jan 20, 2023  
 
DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: https://www.fltk.org/str.php?L1029
Version: 1.4-feature


Both are copied at construction time, into labelsize and textsize if it is
a widget with an input field. 

It's different for Fl_Menu_Item. If textfont or textsize are 0, the default
font and default size are used for `measure` and `draw` (which is bad for
textfont, because if the default font were FL_SCREEN, you could never force
the font to be FL_HELVETICA, because that's 0, and 0 sets the default
value...)


Link: https://www.fltk.org/str.php?L1029
Version: 1.4-feature

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.