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

Issue 8570003: Implement font fallback in RenderTextWin, try #2. (Closed)

Created:
9 years, 1 month ago by Alexei Svitkine (slow)
Modified:
9 years, 1 month ago
Reviewers:
msw, sky
CC:
chromium-reviews
Visibility:
Public.

Description

Implement font fallback in RenderTextWin, try #2. The original change (http://codereview.chromium.org/8565011/) was reverted due to failing NativeTextfieldViewsTest.HitInsideTextAreaTest. The test was too strict when comparing cursor bounds and failed due to font fallback causing height differences in cursor bounds. This updated CL makes the test only check the x value of cursor bounds. Original CL description: This is done by using a metafile to capture the font that Uniscribe would use to render the text (since there is no API to get this from Uniscribe itself). Makes SCRIPT_CACHE be per-run, since different runs may have different fonts and the SCRIPT_CACHE cannot be re-used between these. This is similar to what is done in WebKit in FontCacheWin.cpp BUG=90426, 104234 TEST=Run chrome.exe --use-pure-views and paste some Hebrew text into the omnibox. It should show up properly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110749

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -25 lines) Patch
M ui/gfx/render_text_win.h View 1 2 3 4 chunks +4 lines, -7 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 4 5 6 11 chunks +81 lines, -14 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 1 2 3 4 5 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Alexei Svitkine (slow)
Mike, can you take a look at the new change to RenderTextWin::GetCursorBounds()? Let me know ...
9 years, 1 month ago (2011-11-15 15:41:09 UTC) #1
msw
Is this the right solution or should the test be changed? If this is the ...
9 years, 1 month ago (2011-11-15 19:50:02 UTC) #2
Alexei Svitkine (slow)
On 2011/11/15 19:50:02, msw wrote: > Is this the right solution or should the test ...
9 years, 1 month ago (2011-11-15 21:51:15 UTC) #3
msw
On 2011/11/15 21:51:15, Alexei Svitkine wrote: > On 2011/11/15 19:50:02, msw wrote: > > Is ...
9 years, 1 month ago (2011-11-15 22:14:35 UTC) #4
Alexei Svitkine (slow)
> I guess the test should be more robust; rather than assuming that the cursor ...
9 years, 1 month ago (2011-11-16 16:14:17 UTC) #5
Alexei Svitkine (slow)
On 2011/11/16 16:14:17, Alexei Svitkine wrote: > > I guess the test should be more ...
9 years, 1 month ago (2011-11-16 19:18:16 UTC) #6
xji
On 2011/11/16 19:18:16, Alexei Svitkine wrote: > On 2011/11/16 16:14:17, Alexei Svitkine wrote: > > ...
9 years, 1 month ago (2011-11-16 21:38:06 UTC) #7
Alexei Svitkine (slow)
On Wed, Nov 16, 2011 at 4:38 PM, <xji@chromium.org> wrote: > On 2011/11/16 19:18:16, Alexei ...
9 years, 1 month ago (2011-11-16 21:45:27 UTC) #8
xji
On 2011/11/16 21:45:27, Alexei Svitkine wrote: > On Wed, Nov 16, 2011 at 4:38 PM, ...
9 years, 1 month ago (2011-11-17 23:46:45 UTC) #9
Alexei Svitkine (slow)
Mike, can you review the latest patch? Besides changing the test per discussion with xji@, ...
9 years, 1 month ago (2011-11-18 16:31:32 UTC) #10
msw
LGTM!
9 years, 1 month ago (2011-11-18 18:25:17 UTC) #11
sky
Rubber stamp LGTM
9 years, 1 month ago (2011-11-18 18:43:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/8570003/28001
9 years, 1 month ago (2011-11-18 18:43:37 UTC) #13
commit-bot: I haz the power
Try job failure for 8570003-28001 (retry) (retry) on linux_rel for step "ui_tests". It's a second ...
9 years, 1 month ago (2011-11-18 20:33:59 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-18 20:40:57 UTC) #15

Powered by Google App Engine
This is Rietveld 408576698