Bug 67587 - [Chromium] Android: Need a way to get appropriate font for some specific characters.
Summary: [Chromium] Android: Need a way to get appropriate font for some specific char...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Android Android
: P2 Normal
Assignee: Xianzhu Wang
URL:
Keywords:
Depends on:
Blocks: 97261 98770
  Show dependency treegraph
 
Reported: 2011-09-04 23:18 PDT by Hao Zheng
Modified: 2012-10-16 13:45 PDT (History)
6 users (show)

See Also:


Attachments
Patch (371.65 KB, patch)
2012-10-11 21:06 PDT, Xianzhu Wang
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Hao Zheng 2011-09-04 23:18:41 PDT
We use fontconfig to getFontFamilyForCharacters and getRenderStyleForStrike in Source/WebKit/chromium/src/PlatformSupport.cpp on Chromium/Linux. However, we do not have fontconfig on Android, so we need a way to implement similar functionality like fontconfig.
Comment 1 Xianzhu Wang 2012-10-09 10:14:59 PDT
Depends on Skia bug: http://code.google.com/p/skia/issues/detail?id=913
Comment 2 Xianzhu Wang 2012-10-11 11:21:24 PDT
Peter, for now all tests depending on the internal Skia character font fallback are broken. This is because the change in Skia for http://code.google.com/p/skia/issues/detail?id=913 has just been rolled in. It needs a change in WebKit to use the new character fallback API. The patch will be in this bug. Hopefully I'll finish it today.
Comment 3 Xianzhu Wang 2012-10-11 21:06:33 PDT
Created attachment 168350 [details]
Patch
Comment 4 Xianzhu Wang 2012-10-11 21:11:59 PDT
Because of a bug in my previous Skia change, we must wait for the second patch to Skia before landing this  patch to WebKit.
Comment 5 Xianzhu Wang 2012-10-16 10:30:28 PDT
The depended Skia change has been in Chromium and will be rolled in WebKit shortly.

Adam and James, could you please review the patch? Thanks.
Comment 6 Adam Barth 2012-10-16 12:55:26 PDT
Seems reasonable.  I'm not an expert on this code, but your patch seems fine.
Comment 7 Xianzhu Wang 2012-10-16 13:16:53 PDT
Comment on attachment 168350 [details]
Patch

The depended Skia change has been rolled in WebKit.
Comment 8 WebKit Review Bot 2012-10-16 13:45:32 PDT
Comment on attachment 168350 [details]
Patch

Clearing flags on attachment: 168350

Committed r131495: <http://trac.webkit.org/changeset/131495>
Comment 9 WebKit Review Bot 2012-10-16 13:45:36 PDT
All reviewed patches have been landed.  Closing bug.