aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBilly Hewlett <billyh@google.com>2012-06-20 17:56:31 -0700
committerBilly Hewlett <billyh@google.com>2012-06-20 17:56:31 -0700
commit8c1c7cfacd82a174c65fcbf839d7037e3692aee8 (patch)
treea9f1fd1d5f60ba443af57e079f53d4ef170a93e5
parent9b1d07582a57f0bf58a60f0b8e8f81a5d1c6b867 (diff)
downloadskia-8c1c7cfacd82a174c65fcbf839d7037e3692aee8.tar.gz
Cherrypick change to skiaics-plus-aosp
Change-Id: I7514b6931a11a0a79ec3abd4068f72998fcdf99d
-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 31bc30b340..22d003e57e 100644
--- a/include/core/SkPaint.h
+++ b/include/core/SkPaint.h
@@ -848,6 +848,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 1a02a55949..00238798af 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