[Webkit-unassigned] [Bug 69507] New: [chromium] [linux] Pass language to fontconfig
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Oct 6 01:31:43 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=69507
Summary: [chromium] [linux] Pass language to fontconfig
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Linux
Status: UNCONFIRMED
Severity: Minor
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: falken at chromium.org
CC: jshin at chromium.org, bashi at chromium.org,
kochi at chromium.org
On Linux, a per-script font setting may be a generic font like "serif" to allow fontconfig to choose a font depending on the script. So, we need to pass the language information down to fontconfig. However, currently in FontCache::createFontPlatformData we use Skia SkTypeface::CreateFromName to choose the font, which only accepts the font name and style (normal, bold, italic) which it then passes to fontconfig.
I think we have two choices for a solution:
1. Modify Skia to accept language
2. Use fontconfig directly to get a font name, then pass that to Skia.
WebKit bug 55453 is related, but I'm not sure exactly how. I guess it is for font-fallback when the attempted fonts don't cover the character to render, so it occurs at a later stage when necessary.
It also seems there are related bugs on the Chromium tracker like http://crbug.com/31232
Also, the following comment on a Skia issue seems to mention the possibility of adding language support:
http://code.google.com/p/skia/issues/detail?id=266#c1
--
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