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

Unified Diff: ui/gfx/render_text_win.cc

Issue 11087016: Create font with DEFAULT_CHARSET instead of ANSI_CHARSET. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/platform_font_win.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_win.cc
===================================================================
--- ui/gfx/render_text_win.cc (revision 160607)
+++ ui/gfx/render_text_win.cc (working copy)
@@ -646,7 +646,8 @@
HRESULT hr = ShapeTextRunWithFont(run, current_font);
bool glyphs_missing = false;
- if (hr == USP_E_SCRIPT_NOT_IN_FONT) {
+ if (hr == USP_E_SCRIPT_NOT_IN_FONT ||
Vitaly Buka (NO REVIEWS) 2012/10/08 23:32:51 I don't know why, but this error happens on JA XP
+ hr == __HRESULT_FROM_WIN32(ERROR_INVALID_WINDOW_HANDLE)) {
glyphs_missing = true;
} else if (hr == S_OK) {
// If |hr| is S_OK, there could still be missing glyphs in the output.
« no previous file with comments | « ui/gfx/platform_font_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698