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

Unified Diff: trunk/include/ports/SkFontConfigInterface.h

Issue 13297004: extend FontConfigInterface to start to match new fontmgr design (Closed) Base URL: http://skia.googlecode.com/svn/
Patch Set: Created 7 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
« no previous file with comments | « no previous file | trunk/src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/include/ports/SkFontConfigInterface.h
===================================================================
--- trunk/include/ports/SkFontConfigInterface.h (revision 8565)
+++ trunk/include/ports/SkFontConfigInterface.h (working copy)
@@ -8,6 +8,7 @@
#ifndef SkFontConfigInterface_DEFINED
#define SkFontConfigInterface_DEFINED
+#include "SkFontStyle.h"
#include "SkRefCnt.h"
#include "SkTypeface.h"
@@ -50,6 +51,7 @@
uint32_t fID;
int32_t fTTCIndex;
SkString fString;
+ SkFontStyle fStyle;
};
/**
@@ -81,6 +83,14 @@
* libfontconfig. This does not affect the refcnt of the returned instance.
*/
static SkFontConfigInterface* GetSingletonDirectInterface();
+
+ // New APIS, which have default impls for now (which do nothing)
+
+ virtual int countFamilies();
+ virtual int getFamilySet(int index, SkString* outFamilyName,
+ FontIdentity outIdentities[], int maxCount);
+ virtual int matchFamilySet(const char familyName[], SkString* outFamilyName,
+ FontIdentity outIdentities[], int maxCount);
};
#endif
« no previous file with comments | « no previous file | trunk/src/ports/SkFontConfigInterface_direct.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698