On Tue, Jun 07, 2011 at 10:09:46PM +0000, corvid wrote:
I wrote:
Johannes wrote:
Can you please try attached patch? It seems to work ok with xft enabled and also allows to set e.g: font_sans_serif="helvetica" without xft. Font names in the non-xft case are still a bit odd (e.g. all lower case), but I don't think there's much we can do about that.
For non-xft, xlsfonts says that I have, for instance, "new century schoolbook", but Dillo doesn't list it.
I changed it to Fl::set_fonts ("-*-iso10646-1"); to follow the lead of
if (!xstarname) { strcpy(buf,"-*-"); strcpy(buf+3,fl_encoding); xstarname = buf; }
and now it can find new century schoolbook.
I committed a slightly modified patch that uses our systemFonts table also for finding the default ui font. Cheers, Johannes