[Webkit-unassigned] [Bug 38081] New: Qt DRT is loading the wrong font
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Apr 24 06:53:37 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=38081
Summary: Qt DRT is loading the wrong font
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: Linux
Status: NEW
Keywords: Qt
Severity: Normal
Priority: P2
Component: Tools / Tests
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: robert at webkit.org
Running the following, and looking at image_diffs in the output shows that
the completely wrong font is loaded:
WebKitTools/Scripts/run-webkit-tests --qt --platform mac --tolerance 2.0 -p
fast/block/basic/019.html
Running the following shows the font in WEBKIT_TESTFONTS getting selected:
export FC_DEBUG=1
WebKitBuild/unskip1/Release/bin/DumpRenderTree -v
LayoutTests/fast/block/basic/019.html
I don't understand enough about the fontconfig files in WEBKIT_TESTFONTS to
know how they should be changed to load a font that looks like the one
expected by Mac but presumably there must be something straightforward to
be done there.
Tor Arne, you seem to have set some of this up originally. Why does the
font loaded by the Qt DRT not resemble the one used by the Mac pixel tests?
robert at mwenge:~/Development/WebKit$
WebKitBuild/unskip1/Release/bin/DumpRenderTree -v
LayoutTests/fast/block/basic/019.html
FC_DEBUG=1
FC_DEBUG=1
Match Pattern has 15 elts (size 16)
family: "Arial"(s) "sans-serif"(w) "Helvetica"(w) "Nimbus Sans
L"(w) "sans-serif"(w)
slant: 0(i)(s) 0(i)(s)
weight: 100(i)(s) 100(i)(s)
width: 100(i)(s) 100(i)(s)
pixelsize: 16(f)(s) 16(f)(s)
hintstyle: 3(i)(s)
hinting: FcTrue(s)
verticallayout: FcFalse(s)
autohint: FcFalse(s)
globaladvance: FcTrue(s)
outline: FcTrue(s)
lang: "en-IE"(s)
fontversion: 2147483647(i)(s)
embeddedbitmap: FcTrue(s)
decorative: FcFalse(s)
Best score 0 0 100 100 3 0 0 0 0 2000 0 0 0 0 0 2.14748e+11Pattern has 15
elts (size 15)
family: "Nimbus Sans L"(w)
style: "Regular"(w)
slant: 0(i)(w)
weight: 80(i)(w)
width: 100(i)(w)
foundry: "urw"(w)
file: "/home/robert/Development/webkit/testfonts//n019003l.pfb"(w)
index: 0(i)(w)
outline: FcTrue(w)
scalable: FcTrue(w)
charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000
ffffffff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff 00040000 00000000
00000000 00000000
0002: 0f000000 00000000 00000000 00000000 00000000 00000000
3f0002c0 00000000
0003: 00000000 00000000 00000000 00000000 00100000 10000000
00000000 00000000
0004: ffffffff ffffffff ffffffff 00000000 fffff000 ffffffff
ffff199f 033fffff
0020: 77180000 06010047 00000010 00000000 00000000 00001000
00000000 00000000
0021: 00400000 00000004 00000000 00000000 00000000 00000000
00000000 00000000
0022: 46260044 00000000 00000000 00000031 00000000 00000000
00000000 00000000
0025: 00000000 00000000 00000000 00000000 00000000 00000000
00000400 00000000
00f6: 00000000 00000000 00000000 00000000 00000000 00000000
00000008 00000000
00fb: 00000006 00000000 00000000 00000000 00000000 00000000
00000000 00000000
(w)
lang: aa|ab|af|ast|ava|ay|ba|be|bg|bi|br|bs|bua|ca|ce|ch|chm|co|cs|
cv|da|de|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|ik|
io|is|it|kaa|ki|kk|kl|ku|kum|kv|ky|la|lb|lez|lt|lv|mg|mh|mk|mo|mt|nb|nds|
nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|se|sel|sh|sk|sl|sma|smj|smn|
so|sq|sr|ss|st|sv|sw|tg|tk|tn|tr|ts|tt|tyv|uk|uz|vo|vot|wa|wen|wo|xh|yap|
zu(w)
fontversion: 0(i)(w)
fontformat: "Type 1"(w)
decorative: FcFalse(w)
Match Pattern has 15 elts (size 16)
family: "Arial"(s) "sans-serif"(w) "Helvetica"(w) "Nimbus Sans
L"(w) "sans-serif"(w)
slant: 0(i)(s) 0(i)(s)
weight: 200(i)(s) 200(i)(s)
width: 100(i)(s) 100(i)(s)
pixelsize: 32(f)(s) 32(f)(s)
hintstyle: 3(i)(s)
hinting: FcTrue(s)
verticallayout: FcFalse(s)
autohint: FcFalse(s)
globaladvance: FcTrue(s)
outline: FcTrue(s)
lang: "en-IE"(s)
fontversion: 2147483647(i)(s)
embeddedbitmap: FcTrue(s)
decorative: FcFalse(s)
Best score 0 0 100 100 3 0 0 0 0 0 0 0 0 0 0 2.14748e+11Pattern has 15 elts
(size 15)
family: "Nimbus Sans L"(w)
style: "Bold"(w)
slant: 0(i)(w)
weight: 200(i)(w)
width: 100(i)(w)
foundry: "urw"(w)
file: "/home/robert/Development/webkit/testfonts//n019004l.pfb"(w)
index: 0(i)(w)
outline: FcTrue(w)
scalable: FcTrue(w)
charset: 0000: 00000000 ffffffff ffffffff 7fffffff 00000000
ffffffff ffffffff ffffffff
0001: ffffffff ffffffff ffffffff ffffffff 00040000 00000000
00000000 00000000
0002: 0f000000 00000000 00000000 00000000 00000000 00000000
3f0002c0 00000000
0003: 00000000 00000000 00000000 00000000 00100000 10000000
00000000 00000000
0004: ffffffff ffffffff ffffffff 00000000 fffff000 ffffffff
ffff199f 033fffff
0020: 77180000 06010047 00000010 00000000 00000000 00001000
00000000 00000000
0021: 00000000 00000004 00000000 00000000 00000000 00000000
00000000 00000000
0022: 06260044 00000000 00000000 00000031 00000000 00000000
00000000 00000000
0025: 00000000 00000000 00000000 00000000 00000000 00000000
00000400 00000000
00f6: 00000000 00000000 00000000 00000000 00000000 00000000
00000008 00000000
00fb: 00000006 00000000 00000000 00000000 00000000 00000000
00000000 00000000
(w)
lang: aa|ab|af|ast|ava|ay|ba|be|bg|bi|br|bs|bua|ca|ce|ch|chm|co|cs|
cv|da|de|en|eo|es|et|eu|fi|fj|fo|fr|fur|fy|gd|gl|gv|ho|hr|hu|ia|id|ie|ik|
io|is|it|kaa|ki|kk|kl|ku|kum|kv|ky|la|lb|lez|lt|lv|mg|mh|mk|mo|mt|nb|nds|
nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|se|sel|sh|sk|sl|sma|smj|smn|
so|sq|sr|ss|st|sv|sw|tg|tk|tn|tr|ts|tt|tyv|uk|uz|vo|vot|wa|wen|wo|xh|yap|
zu(w)
fontversion: 0(i)(w)
fontformat: "Type 1"(w)
decorative: FcFalse(w)
Source:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd"><html lang="en-au"><head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title></title>
<style>
h1 { border: 3px solid red; }
</style>
</head><body>
<p>These <h1>s should all be left-aligned:</p>
<h1 style="width: auto;">sample</h1>
<h1 style="width: 10em;">sample</h1>
<p>These <p>s should be (and are) left-aligned:</p>
<p style="width: auto;">sample</p>
<p style="width: 10em;">sample</p>
</body></html>
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x301
RenderBlock {HTML} at (0,0) size 800x301
RenderBody {BODY} at (8,16) size 784x269
RenderBlock {P} at (0,0) size 784x20
RenderText {#text} at (0,0) size 276x20
text run at (0,0) width 276: "These <h1>s should all be left-
aligned:"
RenderBlock {H1} at (0,41) size 784x47 [border: (3px solid #FF0000)]
RenderText {#text} at (3,3) size 111x41
text run at (3,3) width 111: "sample"
RenderBlock {H1} at (0,109) size 326x47 [border: (3px solid #FF0000)]
RenderText {#text} at (3,3) size 111x41
text run at (3,3) width 111: "sample"
RenderBlock {P} at (0,177) size 784x20
RenderText {#text} at (0,0) size 314x20
text run at (0,0) width 314: "These <p>s should be (and are)
left-aligned:"
RenderBlock {P} at (0,213) size 784x20
RenderText {#text} at (0,0) size 52x20
text run at (0,0) width 52: "sample"
RenderBlock {P} at (0,249) size 160x20
RenderText {#text} at (0,0) size 52x20
text run at (0,0) width 52: "sample"
#EOF
#EOF
#EOF
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list