[Webkit-unassigned] [Bug 115634] New: [GTK] font rended incorrectly when using a English font-family name in css definition
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 6 04:16:26 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=115634
Summary: [GTK] font rended incorrectly when using a English
font-family name in css definition
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P3
Component: Text
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: everdom.g at gmail.com
Recently I have been devoting myself to development of a browser-like software using webkitgtk on the platform of Ubuntu 13.04 AMD 64 distribution. But I find a fairly inscrutable problem when webkit rending Chinese font. The situation is described below:
Firstly, The official webkit demo /usr/lib/webkitgtk-3.0-0/libexec/GtkLauncher can't rend the correct font which a webpage assigned by css definition. For example, a webpage assigned the font family as "Microsoft Yahei",but the GtkLauncher just rend Simsun font for all text. I should considered that it is because that I haven't install the MS Yahei font into my system. But after I install it, the problem remains. And in other browsers using webkit like chrome, it always rend the right font, including the Chinese font.
When I try to solve the problem, I find some tips, but still block. I have noticed a phenomenon: when setting the font family to Chinese name instead of English name in the css definition, it does rend the correct font!. In other words, I just alter the the definition like this:
some-element{font-family:"Microsoft Yahei"} ---> some-element{font-family:"微软雅黑"}
Then it works! And I checked other Chinese font like WenQuanyi font family, it appears the same problem. But generally speaking, you'd better to write in English when set a font-family name attribute . But now the English name don't work, on the contrary, the Chinese name works, it is really confused.
In addition, I still can't distinguish where the bug exists, is it in webkitgtk or Ubuntu 13.04 system. I have searched the solution for some time on the Internet, and tried some method, but all failed. So I commit this bug to you, expect your reply!
--
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