Fox wrote:
>
> Is there "vector font" supported by fltk, just like TrueType/*.ttf or
> something?
>
> My platform on PC is FC5 Linux.
--enable-xft is your friend for the configuration.
I remember using larger fonts (on win and linux using xft)just fine as
long as you make some your own label drawing function which would use
fl_size(some_large_value). Do not rely on Fl_Widget::draw_label() as it
uses size stored within widget in one unsigned byte only.
Alternatively, you could make a hack by defining a custom labeltype with
assigned custom function like
void draw_large_label(const Fl_Label *label,
int x, int y, int w, int h, Fl_Align align){
...
fl_size(int(4) * label->size); //draw label four times larger
fl_draw(....)
....
}
and set the widget to such labeltype.
R.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk