font:arial,sans-serif in that order

Stephan Kulow coolo at kde.org
Mon Nov 5 12:29:17 GMT 2007


Am Montag 05 November 2007 schrieb Алексей Подтележников:
> On 11/5/07, Stephan Kulow <coolo at kde.org> wrote:
> > Am Freitag 02 November 2007 schrieb Алексей Подтележников:
> > > On 11/2/07, Stephan Kulow <coolo at kde.org> wrote:
> > > > The fix isn't exactly trivial, but not too complex either. Perhaps
> > > > you give it a go. The main problem is that konqueror puts too much
> > > > believe into FcFontList. Your fc-list won't say that you have told
> > > > fontconfig you have "arial good enough".
> > >
> > > fc-list won't, but fc-match will.
> > >
> > > [apodtele at localhost ~]$ fc-match arial
> > > LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
> > > [apodtele at localhost ~]$ fc-match sans-serif
> > > DejaVuLGCSans.ttf: "DejaVu LGC Sans" "Book"
> > >
> > > fc-list doesn't list aliases at all. Isn't this why konqueror is
> > > confused?
> >
> > Basically, it doesn't use the tools of course.
>
> Does it use FcFontMatch then? :) It probably should rely in that
It doesn't use fontconfig, but Qt. But QFontDatabase::families doesn't list 
aliases either (at least in KDE3, but I don't expect a change in Qt4)

> rather than FcFontList, which is a wrong function for the job..
>
Well, that's what I meant. Check out the code in 
  FontFamilyValueImpl::FontFamilyValueImpl and I guess you can
basically remove all handling of availableFamilies. 

Greetings, Stephan




More information about the kfm-devel mailing list