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

Issue 10010047: Always try metafile font fallback in the case of missing glyphs in RenderTextWin. (Closed)

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

Description

Always try metafile font fallback in the case of missing glyphs in RenderTextWin. Before this patch, if ScriptShape() returned E_OK but there were missing glyphs, we would only try font linking and not metafile font fallback. For Armenian text (and probably others), ScriptShape() returns E_OK with missing glyphs, but font linking won't find the right font. The metafile approach is needed. This change makes sure the metafile font fallback path is always taken first, before trying font linking to find the missing font. BUG=105550, 122974 TEST=Under Windows with use_canvas_skia=1 enabled, go to http://akumb.am. Make sure the tab title is displayed correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=132250

Patch Set 1 : #

Total comments: 8

Patch Set 2 : #

Patch Set 3 : #

Total comments: 7

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -45 lines) Patch
M ui/gfx/render_text_win.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/render_text_win.cc View 1 2 3 4 4 chunks +50 lines, -45 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Alexei Svitkine (slow)
8 years, 8 months ago (2012-04-12 19:30:25 UTC) #1
msw
Why swap the order of linked fonts and the meta file font? How does this ...
8 years, 8 months ago (2012-04-12 19:58:32 UTC) #2
Alexei Svitkine (slow)
On 2012/04/12 19:58:32, msw wrote: > Why swap the order of linked fonts and the ...
8 years, 8 months ago (2012-04-12 20:40:24 UTC) #3
Alexei Svitkine (slow)
Adding missing render_text.h changes.
8 years, 8 months ago (2012-04-12 21:11:42 UTC) #4
msw
The font replacement code is generally a bit messy and should probably cache successful replacement ...
8 years, 8 months ago (2012-04-12 21:32:14 UTC) #5
Alexei Svitkine (slow)
http://codereview.chromium.org/10010047/diff/4002/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc (right): http://codereview.chromium.org/10010047/diff/4002/ui/gfx/render_text_win.cc#newcode732 ui/gfx/render_text_win.cc:732: void RenderTextWin::UpdateRunFont(internal::TextRun* run, int font_size) { On 2012/04/12 21:32:14, ...
8 years, 8 months ago (2012-04-12 22:11:43 UTC) #6
Alexei Svitkine (slow)
Actually, forget my question. I'll just do the refactoring you suggest and make PlatformFontWin copying ...
8 years, 8 months ago (2012-04-12 22:16:26 UTC) #7
Alexei Svitkine (slow)
I've addressed all your comments. (I was actually incorrect about gfx::Font copies - they are ...
8 years, 8 months ago (2012-04-13 13:56:15 UTC) #8
msw
LGTM; thanks for digging in to clean this up and check perf! http://codereview.chromium.org/10010047/diff/13001/ui/gfx/render_text_win.cc File ui/gfx/render_text_win.cc ...
8 years, 8 months ago (2012-04-13 18:27:42 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/asvitkine@chromium.org/10010047/17002
8 years, 8 months ago (2012-04-13 18:36:58 UTC) #10
commit-bot: I haz the power
8 years, 8 months ago (2012-04-13 20:03:39 UTC) #11
Change committed as 132250

Powered by Google App Engine
This is Rietveld 408576698