On Sat, Jan 31, 2009 at 01:51:22PM -0800, Greg Ercolano wrote:
> imacarthur wrote:
> > So, I think if you make the two toolkits select the same actual  
> > underlying font, and adjust the sizes to suit, you will be able to  
> > make the text more similar in the two outputs.
> 
>       In fltk you can use Fl::set_font() to force FL_COURIER
>       to use a specific X font.
> 
>       You can use an old-school tool like xfontsel(1) to pick the
>       X font name you want to use, then pass it to Fl::set_font(), eg:
> 
>           Fl::set_font(FL_COURIER, 
> "-*-courier-medium-r-*-*-18-*-*-*-*-*-*-*");
> 


Wow! This is great!                               

Just a question, if i copy that statement on my source it render the correct 
face but it does not scale very well,
in fact it seems that it does not scale at all! :-)

So I tried with  Fl::set_font(FL_COURIER, "courier"); and this works very fine! 
But i just guessed and i wonder if I 
can rely on this. Is this portable? How can i be sure that this font is 
installed on the user's system? Should i 
check at compile or configuration time?

Thank you.
C.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to