aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/SkPaint.h4
-rw-r--r--include/ports/SkTypeface_android.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/include/core/SkPaint.h b/include/core/SkPaint.h
index 30ff663..0ec6698 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -861,6 +861,10 @@ public:
SkPath* path) const;
#ifdef SK_BUILD_FOR_ANDROID
+
+ enum FontVariant {
+ kElegant_Variant,
+ };
const SkGlyph& getUnicharMetrics(SkUnichar);
const SkGlyph& getGlyphMetrics(uint16_t);
const void* findImage(const SkGlyph&);
diff --git a/include/ports/SkTypeface_android.h b/include/ports/SkTypeface_android.h
index 1a02a55..0023879 100644
--- a/include/ports/SkTypeface_android.h
+++ b/include/ports/SkTypeface_android.h
@@ -10,6 +10,8 @@
#define SkTypeface_android_DEFINED
#include "SkTypeface.h"
+#include "SkPaint.h"
+#include "../harfbuzz/src/harfbuzz-shaper.h"
enum FallbackScripts {
kArabic_FallbackScript,
@@ -30,5 +32,7 @@ enum FallbackScripts {
};
-SK_API SkTypeface* SkCreateTypefaceForScript(FallbackScripts script) {return NULL; }
+SK_API SkTypeface* SkCreateTypefaceForScript(HB_Script script, SkTypeface::Style style,
+ SkPaint::FontVariant fontVariant) { return NULL; }
+
#endif