> On 18 Feb 2013, at 22:38, edgar wrote:
>
> > Hi.
> >
> > I am not able to change labelfont() and labelsize() in fltk-1.3.2
> > I am using the g++ compiler and Ubuntu 12.10.
> >
> > Here is an example of the code with Hello World:
> >
> > #include <FL/Fl.H>
> > #include <FL/Fl_Window.H>
> > #include <FL/Fl_Box.H>
> >
> > int main(int argc, char **argv) {
> > Fl_Window *window = new Fl_Window(340,180);
> > Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");
> > box->box(FL_UP_BOX);
> > box->labelfont(FL_BOLD);
>
>
> FL_BOLD is not a font face name; it is a modifier.
>
> Perhaps you meant FL_HELVETICA or FL_HELVETICA_BOLD or some such?
>
> Note that, FL_HELVETICA_BOLD is actually the value (FL_HELVETICA |
> FL_BOLD)
Actually - I am sort of talking bollocks here: due to a
weird consequence of the way that the FLK numbers are set,
FL_BOLD on its own, does happen to equate to
FL_HELVETICA_BOLD in practice, though I'd be wary of relying
on that!
Given that that is the case, I do not know why your code does
not work.
It probably does not help if I say I just ran your code on this
test box, and it works fine here...
How did you build the fltk libs?
Do you have all the necessary dependencies in place (in my
experience, Ubuntu is very bad for *not* including dev
packages that you need by default!)
Was anything odd flagged up during the configure or
make phases?
How did you compile / link your code?
Given that your code appears to be correct, I have to guess
that something is a bit crook in your build environment,
though I can't see what it could be...
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk