[webkit-qt] render chinese problem?
RyanYee/叶晔
godyee at gmail.com
Thu Mar 18 19:13:29 PDT 2010
platform:mips+qt4.5.1
ua string:(Mozilla/5.0 (QtEmbedded; N; Linux; zh-CN) AppleWebKit/527+
(KHTML, like Gecko, Safari/419.3)
problem with this site: http://www.kuwo.cn/pa_mbox/site/0044/index.html
1.I had "export LC_ALL=zh_CN.utf8" in my enviroment.
2.I had no chinese render problem with www.google.cn and other site
(with charset=gb2312 or utf-8).
3.I use dumprendertree with -v option (compile from WebKit-r35289)
got dumpinfomation.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html
xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
....
</body></html>
layer at (0,0) size 911x836
RenderView at (0,0) size 800x600
layer at (0,0) size 911x836
RenderBlock {HTML} at (0,0) size 800x836
RenderBody {BODY} at (0,0) size 800x836 [color=#212121]
RenderBlock {DIV} at (0,0) size 910x67
RenderBlock (floating) {P} at (0,0) size 231x67
RenderImage {IMG} at (0,0) size 186x67
RenderBlock (floating) {UL} at (231,29) size 676x37
RenderListItem {LI} at (0,0) size 11x37
RenderListItem {LI} at (11,0) size 120x37
RenderListItem {LI} at (131,0) size 100x37
RenderInline {A} at (0,0) size 0x16 [color=#FFFFFF]
RenderText {#text} at (0,10) size 0x16
text run at (0,10) width 0: "\x{9996}\x{9875}"
...
I find text has right unicode ,but width is 0.so I compare with google.cn
layer at (0,0) size 800x600
RenderView at (0,0) size 800x600
layer at (0,0) size 800x600
RenderBlock {HTML} at (0,0) size 800x600
RenderBody {BODY} at (8,3) size 784x583 [bgcolor=#FFFFFF]
RenderBlock {DIV} at (0,0) size 784x25
RenderBlock (floating) {DIV} at (0,0) size 96x23
RenderInline {NOBR} at (0,0) size 100x16
RenderInline {B} at (0,0) size 0x16
RenderText {#text} at (0,1) size 0x16
text run at (0,1) width 0: "\x{7F51}\x{9875}"
same width with 0
1.Is this dumprendertree bug,or dumprendertree not use system font?
2.CSS problem or font(simsun.ttf from windows) problem?
--
RyanYee
More information about the webkit-qt
mailing list