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

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

Issue 16494: Add dynamic web font support to Chrome's port of Webkit. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 12 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/FontCustomPlatformData.h
===================================================================
--- third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.h (revision 7512)
+++ third_party/WebKit/WebCore/platform/graphics/chromium/FontCustomPlatformData.h (working copy)
@@ -31,6 +31,8 @@
#include <wtf/Noncopyable.h>
#if PLATFORM(WIN_OS)
+#include "FontRenderingMode.h"
+#include "PlatformString.h"
#include <windows.h>
#endif
@@ -41,17 +43,20 @@
struct FontCustomPlatformData : Noncopyable {
#if PLATFORM(WIN_OS)
- FontCustomPlatformData(HFONT font)
- : m_font(font)
+ FontCustomPlatformData(HANDLE fontReference, const String& name)
+ : m_fontReference(fontReference)
+ , m_name(name)
{}
#endif
~FontCustomPlatformData();
- FontPlatformData fontPlatformData(int size, bool bold, bool italic);
+ FontPlatformData fontPlatformData(int size, bool bold, bool italic,
+ FontRenderingMode = NormalRenderingMode);
#if PLATFORM(WIN_OS)
- HFONT m_font;
+ HANDLE m_fontReference;
+ String m_name;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698