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

Issue 1317833003: Fix   fallback glyph lookup (Closed)

Created:
5 years, 3 months ago by kochi
Modified:
5 years, 3 months ago
Reviewers:
kojii, eae
CC:
blink-reviews, krit, drott+blinkwatch_chromium.org, Rik, dshwang, jbroman, Justin Novosad, danakj, pdr+graphicswatchlist_chromium.org, f(malita), Stephen Chennney, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Fix   fallback glyph lookup On Japanese locale Android which has Motoya Maruberi as the system default font (up until 5.1), the font fallback path mistakenly picked up ".notdef" glyph for   (U+00A0). This happened because in the fallback path it still ended up in looking up non-existent glyph in the same font file and fell back to the "missingGlyphData". This is because Blink looks up the glyph in normalized codepoint (for U+00A0, normalized to U+0020) but still it tries to look up the original codepoint. This bug was exposed by the following change, to make not to normalize   to space before looking up glyph. https://codereview.chromium.org/705163003 BUG=454108 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201348

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix pageNumber for characterToRender and caching glyph #

Total comments: 1

Patch Set 3 : fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M Source/platform/fonts/Font.cpp View 1 2 1 chunk +5 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (5 generated)
kochi
This works for me. I'm not sure in the fallback path, |c| is used and ...
5 years, 3 months ago (2015-08-26 12:02:59 UTC) #2
kojii
https://codereview.chromium.org/1317833003/diff/1/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1317833003/diff/1/Source/platform/fonts/Font.cpp#newcode528 Source/platform/fonts/Font.cpp:528: GlyphData data = fallbackPage && fallbackPage->glyphForCharacter(characterToRender) ? fallbackPage->glyphDataForCharacter(characterToRender) : ...
5 years, 3 months ago (2015-08-26 13:45:09 UTC) #3
eae
Interesting, thanks for looking into this. Seems reasonable to me.
5 years, 3 months ago (2015-08-26 14:29:11 UTC) #4
kojii
Hm, I thought this patch might undo the effect of http://crbug.com/423539, but maybe I overlooked?
5 years, 3 months ago (2015-08-26 15:46:21 UTC) #5
eae
I think it will.
5 years, 3 months ago (2015-08-26 15:49:26 UTC) #6
kochi
https://codereview.chromium.org/1317833003/diff/1/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1317833003/diff/1/Source/platform/fonts/Font.cpp#newcode528 Source/platform/fonts/Font.cpp:528: GlyphData data = fallbackPage && fallbackPage->glyphForCharacter(characterToRender) ? fallbackPage->glyphDataForCharacter(characterToRender) : ...
5 years, 3 months ago (2015-08-26 16:06:07 UTC) #7
kochi
On 2015/08/26 15:49:26, eae wrote: > I think it will. No - if the glyph ...
5 years, 3 months ago (2015-08-26 16:09:29 UTC) #8
kojii
Ah, right, this is already in the system font fallback code. Though, I'm not certain ...
5 years, 3 months ago (2015-08-27 02:25:42 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317833003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317833003/20001
5 years, 3 months ago (2015-08-27 05:01:17 UTC) #11
kochi
On 2015/08/27 02:25:42, kojii wrote: > Ah, right, this is already in the system font ...
5 years, 3 months ago (2015-08-27 05:23:12 UTC) #12
kochi
On 2015/08/27 05:23:12, Takayoshi Kochi wrote: > On 2015/08/27 02:25:42, kojii wrote: > > Ah, ...
5 years, 3 months ago (2015-08-27 05:30:34 UTC) #13
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 3 months ago (2015-08-27 06:25:58 UTC) #15
kojii
non-owner LGTM
5 years, 3 months ago (2015-08-27 06:59:42 UTC) #16
eae
LGTM w/nit https://codereview.chromium.org/1317833003/diff/20001/Source/platform/fonts/Font.cpp File Source/platform/fonts/Font.cpp (right): https://codereview.chromium.org/1317833003/diff/20001/Source/platform/fonts/Font.cpp#newcode527 Source/platform/fonts/Font.cpp:527: unsigned pageNumberForRendering = (characterToRender / GlyphPage::size); Remove ...
5 years, 3 months ago (2015-08-27 16:57:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317833003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317833003/40001
5 years, 3 months ago (2015-08-27 23:13:22 UTC) #20
Rik
? ? ? Hi, I'm currently on leave. For urgent matters, please contact my manager ...
5 years, 3 months ago (2015-08-27 23:13:29 UTC) #21
commit-bot: I haz the power
5 years, 3 months ago (2015-08-28 00:27:16 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201348

Powered by Google App Engine
This is Rietveld 408576698