Summary: | [CSS 2.1 Conformance] [testcase] font-family incorrectly selects the last of 2 generic font-family | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Gérard Talbot (no longer involved) <browserbugs2> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | aiacovitti, walch.martin |
Priority: | NOR | Keywords: | testcase |
Version: | 4.7.4 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kdelibs/94ccee520bedb2284c277835f6001b7aaed2da71 | Version Fixed In: | 4.12.5 |
Sentry Crash Report: | |||
Attachments: |
Screen shot of topmost part of testcase B with my font settings in Konqueror 4.13.0
Screen shot of bottom part of testcase B with my font settings in Konqueror 4.13.0 Screen shot of testcase B + my font settings |
Description
Gérard Talbot (no longer involved)
2011-01-31 05:26:30 UTC
Additional relevant testcase coming from CSS 1 test suite: http://www.w3.org/Style/CSS/Test/CSS1/current/sec522.htm and look for the sentence that tests .six {font-family: sans-serif,cursive;} which says "This sentence should be in a sans-serif font, not cursive." regards, Gérard Konqueror 4.7.4 (KHTML rendering engine) CONFIRMING I'm using kde 4.12 and i can not reproduce. Created attachment 86165 [details]
Screen shot of topmost part of testcase B with my font settings in Konqueror 4.13.0
Created attachment 86166 [details]
Screen shot of bottom part of testcase B with my font settings in Konqueror 4.13.0
Andrea,
I am using
Linux 3.13.0-24-generic x86_64
Qt: 4.8.6
KDE development platform: 4.13.0
Description: Ubuntu 14.04 LTS (Kubuntu 14.04 LTS)
Codename: trusty
with Konqueror 4.13.0
Created attachment 86169 [details]
Screen shot of testcase B + my font settings
As you can see testcase B looks correct (the same apply to testcase A for me) and i have the exactly same configuration of you. I suspect the problem is in font setting module that doesn't correctly save font configuration.
In .kde/share/config/konquerorrc, [HTML Settings] section, there should be a "Fonts" configuration entry. Mine looks as follow:
Fonts=DejaVu Sans,DejaVu Sans Mono,DejaVu Serif,DejaVu Sans,URW Chancery L,Purisa,0
(as you can see it match what is in GUI conf part)
If your looks different, or not present at all, could you please try to substitute that line with the one i posted, restart konqueror, and see i it makes any difference?
Thank you.
(In reply to comment #6) > Created attachment 86169 [details] > Screen shot of testcase B + my font settings > > As you can see testcase B looks correct (the same apply to testcase A for > me) and i have the exactly same configuration of you. No, not exactly same configuration! Please change your "Caratteri Standard" from "DejaVu Sans" to "DejaVu Serif" like mine > I suspect the problem > is in font setting module that doesn't correctly save font configuration. > In .kde/share/config/konquerorrc, [HTML Settings] section, there should be a > "Fonts" configuration entry. Mine looks as follow: > Fonts=DejaVu Sans,DejaVu Sans Mono,DejaVu Serif,DejaVu Sans,URW Chancery > L,Purisa,0 Mine is exactly as following: Fonts=DejaVu Serif,Monospace,DejaVu Serif,Sans Serif,URW Chancery L,Purisa, It does not end with an "0" like yourself; it ends with a comma "," ... which is definitely strange... as all other value settings in .kde/share/config/konquerorrc all ends with a value (eg true eg Disabled eg Enabled eg 1) and not with a comma. Also I see Monospace and not DejaVu Sans Mono like you have. > (as you can see it match what is in GUI conf part) > If your looks different, or not present at all, could you please try to > substitute that line with the one i posted, restart konqueror, and see i it > makes any difference? Huh... I can do that with Kate ? > Mine is exactly as following:
>
> Fonts=DejaVu Serif,Monospace,DejaVu Serif,Sans Serif,URW Chancery L,Purisa,
>
> It does not end with an "0" like yourself; it ends with a comma "," ...
> which is definitely strange... as all other value settings in
> .kde/share/config/konquerorrc all ends with a value (eg true eg Disabled eg
> Enabled eg 1) and not with a comma.
> Also I see Monospace and not DejaVu Sans Mono like you have.
You are confirming my suspects...
Based on the screen shot you posted your fonts config line should looks like:
Fonts=DejaVu Serif,DejaVu Sans Mono,DejaVu Serif,DejaVu Sans,URW Chancery L,Purisa,0
(the ending "0" should not really matter for this specific bug)
Yes, you can change it with Kate or whatever text editor you like. Beware to first close all running konqueror before doing that.
(In reply to comment #8) > > Mine is exactly as following: > > > > Fonts=DejaVu Serif,Monospace,DejaVu Serif,Sans Serif,URW Chancery L,Purisa, > > > > It does not end with an "0" like yourself; it ends with a comma "," ... > > which is definitely strange... as all other value settings in > > .kde/share/config/konquerorrc all ends with a value (eg true eg Disabled eg > > Enabled eg 1) and not with a comma. > > Also I see Monospace and not DejaVu Sans Mono like you have. > > You are confirming my suspects... > Based on the screen shot you posted your fonts config line should looks like: > Fonts=DejaVu Serif,DejaVu Sans Mono,DejaVu Serif,DejaVu Sans,URW Chancery > L,Purisa,0 > (the ending "0" should not really matter for this specific bug) > > Yes, you can change it with Kate or whatever text editor you like. Beware to > first close all running konqueror before doing that. Andrea, I changed that editable configuration Fonts line to Fonts=DejaVu Serif,DejaVu Sans Mono,DejaVu Serif,DejaVu Sans,URW Chancery L,Purisa,0 in/with Kate, then started Konqueror 4.13.0, then tried the 3 tests and each tests now PASS! I wonder what really caused such configuration line to be wrong. Andrea, is it possible to create a new bug report about the font setting module that you suspect is not correctly saving font configuration? I now mark this bug as Status: RESOLVED and Resolution: WORKSFORME. All I can say is ** Thank you Andrea !! ** Gérard Git commit 94ccee520bedb2284c277835f6001b7aaed2da71 by Andrea Iacovitti. Committed on 23/04/2014 at 17:31. Pushed by aiacovitti into branch 'KDE/4.12'. Resolve generic font family names before using them in khtml. FIXED-IN: 4.12.5 M +18 -4 khtml/khtml_settings.cpp http://commits.kde.org/kdelibs/94ccee520bedb2284c277835f6001b7aaed2da71 |