On 01.07.2011, at 22:24, Georg Potthast wrote:

> I have compiled FLTK 1.3.0 and run the examples in the test directory. I 
> observe that FLTK first tries to find a font with an xlistfonts call 
> specifying "-*-helvetica-bold-o-normal--*" .
> 
> Since this is not a free font and I do not have that on my PC I would like 
> to change that to a dejavu font. How can I do that with changing the 
> examples, just modifying the FLTK 1.3.0 code?
> 
> I tried changing the entries in Fl_Fontdesc built_in_table[] or setting 
> const Fl_Font FL_HELVETICA to 16 without any effect.

You can create some configuration file on your machine that maps on font to 
another. I am not sure how it works, some X11 person will surely chime in. 
Settinf Fl_Font to HELVETICA will not work, but setting the built-in-table 
should. Just make sure that you modify the right table, because Xft support is 
in a different position than regular X11 support. WHich one is chosen depends 
on you configuration.

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

Reply via email to