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

Issue 10315007: Detect missing glyphs as returned by Vista in RenderTextWin. (Closed)

Created:
8 years, 7 months ago by Alexei Svitkine (slow)
Modified:
8 years, 7 months ago
Reviewers:
msw, jungshik at Google
CC:
chromium-reviews
Visibility:
Public.

Description

Detect missing glyphs as returned by Vista in RenderTextWin. Vista's version of Uniscribe (or possibly of the Meiryo font) doesn't return glyphs with value wgDefault for characters that cannot be displayed by that font. Instead, they have value wgBlank with the fZeroWidth attribute bit set. This change detects that and determines if there were missing glyphs based on whether the character(s) that correspond to the glyph are whitespace characters. BUG=125629, 105550 TEST=See http://crbug.com/125629 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135206

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -18 lines) Patch
M ui/gfx/render_text_win.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 5 chunks +37 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Alexei Svitkine (slow)
8 years, 7 months ago (2012-05-02 14:43:02 UTC) #1
Alexei Svitkine (slow)
Unfortunately, it looks like this isn't enough. There is a false positive with the following ...
8 years, 7 months ago (2012-05-02 16:57:51 UTC) #2
msw
On 2012/05/02 16:57:51, Alexei Svitkine wrote: > Unfortunately, it looks like this isn't enough. There ...
8 years, 7 months ago (2012-05-02 18:41:35 UTC) #3
Alexei Svitkine (slow)
I've been looking, but haven't found anything promising yet. > Perhaps we can configure Uniscribe ...
8 years, 7 months ago (2012-05-02 18:43:31 UTC) #4
msw
On 2012/05/02 18:43:31, Alexei Svitkine wrote: > I've been looking, but haven't found anything promising ...
8 years, 7 months ago (2012-05-02 19:02:47 UTC) #5
Alexei Svitkine (slow)
On 2012/05/02 19:02:47, msw wrote: > On 2012/05/02 18:43:31, Alexei Svitkine wrote: > > I've ...
8 years, 7 months ago (2012-05-02 19:05:38 UTC) #6
Alexei Svitkine (slow)
Please take another look. I've implemented the approach I discussed with jshin@. It fixes both ...
8 years, 7 months ago (2012-05-02 21:34:23 UTC) #7
msw
Do we know how Webkit (or any other Uniscribe consumers) handle these cases? http://codereview.chromium.org/10315007/diff/10002/ui/gfx/render_text_win.cc File ...
8 years, 7 months ago (2012-05-02 22:19:09 UTC) #8
Alexei Svitkine (slow)
On 2012/05/02 22:19:09, msw wrote: > Do we know how Webkit (or any other Uniscribe ...
8 years, 7 months ago (2012-05-03 03:56:34 UTC) #9
Alexei Svitkine (slow)
On 2012/05/03 03:56:34, Alexei Svitkine wrote: > On 2012/05/02 22:19:09, msw wrote: > > Do ...
8 years, 7 months ago (2012-05-03 03:57:44 UTC) #10
msw
Okay, just ensuring that we're not missing any obviously better approach; I hope we're not ...
8 years, 7 months ago (2012-05-03 04:07:47 UTC) #11
Alexei Svitkine (slow)
Actually, some code in UniscribeHelper.cpp seems relevant: http://code.google.com/searchframe#OAMlx_jo-ck/src/third_party/WebKit/Source/WebCore/platform/graphics/chromium/UniscribeHelper.cpp&l=1062 It looks like what that code does ...
8 years, 7 months ago (2012-05-03 04:15:28 UTC) #12
msw
> perhaps higher level code (that picks which fonts to try), never ends up picking ...
8 years, 7 months ago (2012-05-03 04:26:26 UTC) #13
Alexei Svitkine (slow)
On 2012/05/03 04:26:26, msw wrote: > > perhaps higher level code (that picks which fonts ...
8 years, 7 months ago (2012-05-03 04:36:07 UTC) #14
Alexei Svitkine (slow)
CL updated. Please take another look. http://codereview.chromium.org/10315007/diff/10002/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/10315007/diff/10002/ui/gfx/render_text_win.cc#newcode657 ui/gfx/render_text_win.cc:657: // On Vista, ...
8 years, 7 months ago (2012-05-03 14:37:20 UTC) #15
msw
This is much more straightforward, thanks for taking the extra time. LGTM. http://codereview.chromium.org/10315007/diff/25002/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc ...
8 years, 7 months ago (2012-05-03 17:33:34 UTC) #16
Alexei Svitkine (slow)
http://codereview.chromium.org/10315007/diff/25002/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/10315007/diff/25002/ui/gfx/render_text_win.cc#newcode625 ui/gfx/render_text_win.cc:625: bool glyphs_missing = false; On 2012/05/03 17:33:34, msw wrote: ...
8 years, 7 months ago (2012-05-03 17:47:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10315007/21005
8 years, 7 months ago (2012-05-03 17:48:07 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10315007/2005
8 years, 7 months ago (2012-05-03 17:59:00 UTC) #19
commit-bot: I haz the power
8 years, 7 months ago (2012-05-03 20:35:23 UTC) #20
Change committed as 135206

Powered by Google App Engine
This is Rietveld 408576698