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

Unified Diff: Source/platform/fonts/FontCache.h

Issue 235553003: Support sideloaded fonts for DirectWrite (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 8 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: Source/platform/fonts/FontCache.h
diff --git a/Source/platform/fonts/FontCache.h b/Source/platform/fonts/FontCache.h
index 8383a513762444ce2814f6a31b925d983805f4f5..0a556d0372e5fb1e21e9a6510a14c5dc4e2126d7 100644
--- a/Source/platform/fonts/FontCache.h
+++ b/Source/platform/fonts/FontCache.h
@@ -33,6 +33,7 @@
#include <limits.h>
#include "platform/PlatformExport.h"
#include "wtf/Forward.h"
+#include "wtf/HashSet.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/Vector.h"
@@ -103,6 +104,7 @@ public:
static void setUseDirectWrite(bool useDirectWrite) { s_useDirectWrite = useDirectWrite; }
static void setDirectWriteFactory(IDWriteFactory* factory) { s_directWriteFactory = factory; }
static void setUseSubpixelPositioning(bool useSubpixelPositioning) { s_useSubpixelPositioning = useSubpixelPositioning; }
+ static void addSideloadedFont(SkTypeface*);
eae 2014/04/12 10:51:33 How about addSideloadedFontForTesting to discourag
scottmg 2014/04/12 15:42:39 SG, Done.
#endif
#if ENABLE(OPENTYPE_VERTICAL)
@@ -154,6 +156,7 @@ private:
static bool s_useDirectWrite;
static IDWriteFactory* s_directWriteFactory;
static bool s_useSubpixelPositioning;
+ static HashMap<String, SkTypeface*>* s_sideloadedFonts;
#endif
#if OS(MACOSX) || OS(ANDROID)
« no previous file with comments | « no previous file | Source/platform/fonts/skia/FontCacheSkia.cpp » ('j') | Source/platform/fonts/skia/FontCacheSkia.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698