Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Issue 2288383002: Disable CJK specific generic font families for monospace on Android (Closed)

Created:
4 years, 3 months ago by kojii
Modified:
4 years, 3 months ago
Reviewers:
drott, eae
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable CJK specific generic font families for monospace on Android Before this patch, when the content locale is one of CJK, Android maps all generic families to what Skia matchFamilyStyleCharacter() API returns. This API can find one default font for the specified locale, but disregards which generic font family was used. This patch disables the behavior for "monospace", where using the monospace ASCII glyphs is more important than using the font that has good coverage of the specified locale. When characters outside of the monospace font were used, system fallback can still help to render the characters. BUG=640077 Committed: https://crrev.com/96e2aeba7ca3d4398a2cfb44f2b864dfa8ea2ad9 Cr-Commit-Position: refs/heads/master@{#415287}

Patch Set 1 #

Patch Set 2 : Add comments #

Patch Set 3 : Add test #

Total comments: 1

Patch Set 4 : drott review, updated comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -1 line) Patch
M third_party/WebKit/Source/platform/fonts/android/FontCacheAndroid.cpp View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/fonts/android/FontCacheAndroidTest.cpp View 1 2 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
kojii
PTAL.
4 years, 3 months ago (2016-08-30 05:59:40 UTC) #13
drott
LGTM if you file a bug to keep track of improving this in fonts.xml. Thanks. ...
4 years, 3 months ago (2016-08-30 08:18:58 UTC) #16
kojii
On 2016/08/30 at 08:18:58, drott wrote: > Looks okay to me but let's file a ...
4 years, 3 months ago (2016-08-30 12:45:09 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2288383002/60001
4 years, 3 months ago (2016-08-30 12:49:46 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-30 14:02:00 UTC) #21
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/96e2aeba7ca3d4398a2cfb44f2b864dfa8ea2ad9 Cr-Commit-Position: refs/heads/master@{#415287}
4 years, 3 months ago (2016-08-30 14:04:11 UTC) #23
eae
4 years, 3 months ago (2016-08-30 14:54:57 UTC) #24
Message was sent while issue was closed.
LGTM

Powered by Google App Engine
This is Rietveld 408576698