font:arial,sans-serif in that order

Stephan Kulow coolo at kde.org
Fri Nov 2 08:15:35 GMT 2007


Am Donnerstag 01 November 2007 schrieb Алексей Подтележников:
> Many popular websites specify their style as font:arial,sans-serif in
> that particular order.
> This goes for www.cnn.com, www.yahoo.com, www.bbc.co.uk.
>
> When I have actual Arial available, konqueror 3.5.8 seems to pick
> Arial, which is great.
> When I don't have Arial available, konqueror 3,5,8 seems to pick
> DejaVu Sans, which is fine. When I have Liberation Sans available and
> aliased as Arial in fontconfig, konqueror seems to go for sans-serif,
> which is not good.
>
> Liberation family has exact metrics of Microsoft fonts and, therefore,
> looks a lot better than DejaVu Sans on many popular websites.
> Konqueror seems to ignore aliasing and goes for sans. I think it's a
> bug, Arial clearly is preferred choice in the css because it precedes
> sans-serif. Even then the default sans for the desktop is DejaVu sans,
> konqueror should respect the website design. To give a Microsoft
> analogy, tahoma is default on the desktop, while websites usually go
> with Arial.
>
> What about people who hate Arial and anything similar? They certainly
> should not own default konqueror behavior.
>
> https://bugzilla.redhat.com/show_bug.cgi?id=355271

I guess the right thing to do is voting for 
http://bugs.kde.org/show_bug.cgi?id=57485

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".

The problem at hand is that fontconfig and QFont can handle "arial,sans-serif"
just fine, but that konqueror breaks the list up.

Greetings, Stephan




More information about the kfm-devel mailing list