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

Unified Diff: webkit/port/platform/graphics/GlyphPageTreeNodeWin.cpp

Issue 13163: A fix for Issue 5139 "some plane-1 characters are not displayed correctly".... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/port/platform/graphics/GlyphPageTreeNodeWin.cpp
===================================================================
--- webkit/port/platform/graphics/GlyphPageTreeNodeWin.cpp (revision 6411)
+++ webkit/port/platform/graphics/GlyphPageTreeNodeWin.cpp (working copy)
@@ -204,7 +204,10 @@
state.Init();
for (unsigned i = 0; i < GlyphPage::size; i++) {
- WORD glyph = state.FirstGlyphForCharacter(i);
+ // Each character in this input buffer is a surrogate pair, which
+ // consists of two UChars. So, the offset for its i-th character is
+ // (i * 2).
+ WORD glyph = state.FirstGlyphForCharacter(i * 2);
if (glyph) {
have_glyphs = true;
page->setGlyphDataForIndex(i, glyph, fontData);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698