Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1678)

Issue 6572059: Disable automatic font fallback of SkFontHost_android when building for WebKit (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by Xianzhu
Modified:
12 years, 1 month ago
Reviewers:
DerekS, reed1
CC:
skia-review_googlegroups.com, klobag_chromium.org, Hao Zheng
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Disable automatic font fallback of SkFontHost_android when building for WebKit The internal font fallback mechanism prevents WebKit from getting the properties of the actually used font. Disable the internal fallback mechanism when building for WebKit and add SkGetFallbackFamilyNameForChar() to let the upper level know the fallback font for individial characters. BUG=913 (http://code.google.com/p/skia/issues/detail?id=913)

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -22 lines) Patch
M include/ports/SkTypeface_android.h View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M src/ports/SkFontHost_android.cpp View 1 2 3 4 5 10 chunks +71 lines, -22 lines 0 comments Download

Messages

Total messages: 16
Xianzhu
12 years, 2 months ago (2012-09-26 22:51:19 UTC) #1
DerekS
https://codereview.appspot.com/6572059/diff/16/include/core/SkPaint.h File include/core/SkPaint.h (left): https://codereview.appspot.com/6572059/diff/16/include/core/SkPaint.h#oldcode855 include/core/SkPaint.h:855: unsigned getBaseGlyphCount(SkUnichar text) const; As much as I would ...
12 years, 2 months ago (2012-09-27 12:46:16 UTC) #2
Xianzhu
Uploaded a new patch set. I keep the original code and use SK_BUILD_FOR_ANDROID_WEBKIT (which will ...
12 years, 2 months ago (2012-09-27 19:00:25 UTC) #3
DerekS
https://codereview.appspot.com/6572059/diff/4001/src/ports/SkFontHost_android.cpp File src/ports/SkFontHost_android.cpp (right): https://codereview.appspot.com/6572059/diff/4001/src/ports/SkFontHost_android.cpp#newcode882 src/ports/SkFontHost_android.cpp:882: #ifdef SK_BUILD_FOR_ANDROID_WEBKIT I would recommend that you use the ...
12 years, 2 months ago (2012-09-28 17:08:20 UTC) #4
Xianzhu
https://codereview.appspot.com/6572059/diff/4001/src/ports/SkFontHost_android.cpp File src/ports/SkFontHost_android.cpp (right): https://codereview.appspot.com/6572059/diff/4001/src/ports/SkFontHost_android.cpp#newcode882 src/ports/SkFontHost_android.cpp:882: #ifdef SK_BUILD_FOR_ANDROID_WEBKIT On 2012/09/28 17:08:20, DerekS wrote: > I ...
12 years, 2 months ago (2012-09-28 17:18:52 UTC) #5
DerekS
lgtm with one nit and one question about your added API https://codereview.appspot.com/6572059/diff/17/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): ...
12 years, 2 months ago (2012-09-28 17:48:11 UTC) #6
Xianzhu
https://codereview.appspot.com/6572059/diff/17/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): https://codereview.appspot.com/6572059/diff/17/include/ports/SkTypeface_android.h#newcode65 include/ports/SkTypeface_android.h:65: SK_API const char* SkGetFallbackFamilyNameForChar(SkUnichar uni); On 2012/09/28 17:48:12, DerekS ...
12 years, 1 month ago (2012-09-28 19:17:19 UTC) #7
Xianzhu
Derek, if the latest patch looks good to you, could you help land it in ...
12 years, 1 month ago (2012-10-01 18:26:47 UTC) #8
Xianzhu
12 years, 1 month ago (2012-10-03 18:15:34 UTC) #9
Xianzhu
Hi Derek and Reed, Does the latest patch look good? If yes could you help ...
12 years, 1 month ago (2012-10-04 16:23:15 UTC) #10
reed1
https://codereview.appspot.com/6572059/diff/14003/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): https://codereview.appspot.com/6572059/diff/14003/include/ports/SkTypeface_android.h#newcode70 include/ports/SkTypeface_android.h:70: * the specified chararacter. More robust would be to ...
12 years, 1 month ago (2012-10-04 16:35:45 UTC) #11
Xianzhu
https://codereview.appspot.com/6572059/diff/14003/include/ports/SkTypeface_android.h File include/ports/SkTypeface_android.h (right): https://codereview.appspot.com/6572059/diff/14003/include/ports/SkTypeface_android.h#newcode70 include/ports/SkTypeface_android.h:70: * the specified chararacter. On 2012/10/04 16:35:45, reed1 wrote: ...
12 years, 1 month ago (2012-10-04 17:23:09 UTC) #12
reed1
lgtm -- handing over to Derek
12 years, 1 month ago (2012-10-04 17:58:39 UTC) #13
Xianzhu
Hi Derek and Reed, What's the ETA of it to appear in Chromium? Thanks, Xianzhu
12 years, 1 month ago (2012-10-09 16:56:35 UTC) #14
DerekS
This CL has been committed so feel free to close this issue. https://code.google.com/p/skia/source/detail?r=5866 The CL ...
12 years, 1 month ago (2012-10-09 19:31:17 UTC) #15
Xianzhu
12 years, 1 month ago (2012-10-09 19:32:29 UTC) #16
Cool. Thanks!

On Tue, Oct 9, 2012 at 12:31 PM, <djsollen@google.com> wrote:

> This CL has been committed so feel free to close this issue.
>
>
https://code.google.com/p/**skia/source/detail?r=5866<https://code.google.com...
>
> The CL will be included in Chromium with the next Skia DEPS roll which
> in all likelihood will be tomorrow morning.
>
>
https://codereview.appspot.**com/6572059/<https://codereview.appspot.com/6572...
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b