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

Unified Diff: third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.h

Issue 17624: Add m_isGlyphLookupMode to UniscribeHelper class and set it to true when fill... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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
Index: third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.h
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.h (revision 7936)
+++ third_party/WebKit/WebCore/platform/graphics/chromium/UniscribeHelper.h (working copy)
@@ -143,6 +143,16 @@
m_ascent = ascent;
}
+ // When set to true, this class is used only to look up glyph
+ // indices for a range of Unicode characters without glyph placement.
+ // By default, it's false. This should be set to true when this
+ // class is used for glyph index look-up for non-BMP characters
+ // in GlyphPageNodeChromiumWin.cpp.
+ void setDisableFontFallback(bool disableFontFallback)
+ {
+ m_disableFontFallback = true;
+ }
+
// You must call this after setting any options but before doing any
// other calls like asking for widths or drawing.
void Init()
@@ -382,6 +392,7 @@
int m_letterSpacing;
int m_spaceWidth;
int m_wordSpacing;
+ bool m_disableFontFallback;
// Uniscribe breaks the text into Runs. These are one length of text that is
// in one script and one direction. This array is in reading order.

Powered by Google App Engine
This is Rietveld 408576698