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

Unified Diff: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h

Issue 24609002: Implement support for fake bold/italics for non-GDI windows font path (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: patch for landing Created 7 years, 3 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 | « no previous file | Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
diff --git a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
index 5d583451d9dd653b11b55d1f9a18b10e7cd781db..35c18f2baf72c34cd260a04eb43743c0c49785ac 100644
--- a/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
+++ b/Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.h
@@ -103,7 +103,7 @@ public:
bool operator==(const FontPlatformData& other) const
{
- return m_font == other.m_font && m_size == other.m_size && m_orientation == other.m_orientation;
+ return m_font == other.m_font && m_size == other.m_size && m_fakeBold == other.m_fakeBold && m_fakeItalic == other.m_fakeItalic && m_orientation == other.m_orientation;
}
#if ENABLE(OPENTYPE_VERTICAL)
@@ -157,6 +157,8 @@ private:
RefPtr<RefCountedHFONT> m_font;
float m_size; // Point size of the font in pixels.
FontOrientation m_orientation;
+ bool m_fakeBold;
+ bool m_fakeItalic;
RefPtr<SkTypeface> m_typeface; // cached from m_font
int m_paintTextFlags; // cached from m_font
« no previous file with comments | « no previous file | Source/core/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698