aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkFontConfigInterface.h
diff options
context:
space:
mode:
authorGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-09 15:54:52 +0000
committerGravatar reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-04-09 15:54:52 +0000
commit54c69147f96eedb10e430df72d71419795e81d3a (patch)
treed874b4cfdc441c93e448c2d005a562b77fe3b1f1 /include/ports/SkFontConfigInterface.h
parent116ad84d3126b0db22b2312ca59ed70e5c56f6fc (diff)
extend FontConfigInterface to start to match new fontmgr design
Review URL: https://codereview.chromium.org/13297004 git-svn-id: http://skia.googlecode.com/svn/trunk@8575 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/ports/SkFontConfigInterface.h')
-rw-r--r--include/ports/SkFontConfigInterface.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ports/SkFontConfigInterface.h b/include/ports/SkFontConfigInterface.h
index 0769362c8b..f7b2ebeaa8 100644
--- a/include/ports/SkFontConfigInterface.h
+++ b/include/ports/SkFontConfigInterface.h
@@ -8,6 +8,7 @@
#ifndef SkFontConfigInterface_DEFINED
#define SkFontConfigInterface_DEFINED
+#include "SkFontStyle.h"
#include "SkRefCnt.h"
#include "SkTypeface.h"
@@ -50,6 +51,7 @@ public:
uint32_t fID;
int32_t fTTCIndex;
SkString fString;
+ SkFontStyle fStyle;
};
/**
@@ -81,6 +83,14 @@ public:
* 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