On 09.02.2012 09:46, leowang wrote:
>> Dear All,
>> Now I am using fltk1.3, I have the following sample code.
>>
>>
>>    Fl_Button *b1 = new Fl_Button(200, 200, 800, 250, "&Beep");
>>
>>    b1->labelcolor(FL_BLUE);
>>
>>    b1->labelsize(36);
>> printf("text size = %d\n", b1->labelsize());
>>    b1->box(FL_NO_BOX);
>>
>> But the font display is still 14pix but not 36, the print message shows the 
>> text size is 36. Why?
>>
>> Best regards,
>> Leo
>
> I have test the hello.cxx sample, it also has the same result.
>
> the following is the hello.cxx code.
>
> 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_ITALIC);
>    box->labelsize(36);
>    box->labeltype(FL_SHADOW_LABEL);
>    window->end();
>    window->show(argc, argv);
>    return Fl::run();
> }

The code in test/hello.cxx works fine for me. Does it not
for you on a normal (PC) OS? If it works on some OS and not
on your other OS (again: which OS, is it your arm board again?),
then this is likely to be a problem with (not scalable) fonts.

If you're using an embedded system, please specify also, which
X system (or whatever) you're using.

And, BTW: the above code is incomplete, all the headers are missing.

Albrecht
_______________________________________________
fltk mailing list
fltk@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to