#include "SkTypeface.h"
#ifdef SK_BUILD_FOR_WIN
- extern SkFontMgr* SkFontMgr_New_GDI();
- extern SkFontMgr* SkFontMgr_New_DirectWrite();
+ #include "SkTypeface_win.h"
#endif
// limit this just so we don't take too long to draw
-
/*
* Copyright 2011 Google Inc.
*
* found in the LICENSE file.
*/
-
-
#ifndef SkTypeface_win_DEFINED
#define SkTypeface_win_DEFINED
*/
SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&));
+// Experimental!
+//
+class SkFontMgr;
+SK_API SkFontMgr* SkFontMgr_New_GDI();
+SK_API SkFontMgr* SkFontMgr_New_DirectWrite();
+
#endif
#endif
-extern SkFontMgr* SkFontMgr_New_GDI();
SkFontMgr* SkFontMgr_New_GDI() {
return SkNEW(SkFontMgrGDI);
}
return S_OK;
}
-extern SkFontMgr* SkFontMgr_New_DirectWrite();
SkFontMgr* SkFontMgr_New_DirectWrite() {
IDWriteFactory* factory;
HRNM(get_dwrite_factory(&factory), "Could not get factory.");
#include "SkFontMgr.h"
-
-extern SkFontMgr* SkFontMgr_New_DirectWrite();
+#include "SkTypeface_win.h"
SkFontMgr* SkFontMgr::Factory() {
return SkFontMgr_New_DirectWrite();
#include "SkFontMgr.h"
-
-extern SkFontMgr* SkFontMgr_New_GDI();
+#include "SkTypeface_win.h"
SkFontMgr* SkFontMgr::Factory() {
return SkFontMgr_New_GDI();