summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-05-14 11:01:32 -0700
committerRaph Levien <raph@google.com>2014-05-14 11:01:32 -0700
commitd133eab2a1a59ce4a5b1b3db04ec00dc0dbdf349 (patch)
tree14c44fed92e72bfee3f8bb220073233cac6f99f5 /libs
parentb80c1f19c58b927820a8a24bf2218e5645724608 (diff)
downloadandroid_frameworks_minikin-d133eab2a1a59ce4a5b1b3db04ec00dc0dbdf349.tar.gz
android_frameworks_minikin-d133eab2a1a59ce4a5b1b3db04ec00dc0dbdf349.tar.bz2
android_frameworks_minikin-d133eab2a1a59ce4a5b1b3db04ec00dc0dbdf349.zip
Fix build breakage in sample code
This updates the Skia sample implementation to implement GetBounds, but the FreeType implementation is NYI (to be fixed in future commit). Change-Id: I24eda14d5fb11c2a1e81394ad8c779de3292dd79
Diffstat (limited to 'libs')
-rw-r--r--libs/minikin/MinikinFontFreeType.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/minikin/MinikinFontFreeType.cpp b/libs/minikin/MinikinFontFreeType.cpp
index be61345..a251dda 100644
--- a/libs/minikin/MinikinFontFreeType.cpp
+++ b/libs/minikin/MinikinFontFreeType.cpp
@@ -53,6 +53,11 @@ float MinikinFontFreeType::GetHorizontalAdvance(uint32_t glyph_id,
return advance * (1.0 / 65536);
}
+void MinikinFontFreeType::GetBounds(MinikinRect* bounds, uint32_t glyph_id,
+ const MinikinPaint& paint) const {
+ // TODO: NYI
+}
+
bool MinikinFontFreeType::GetTable(uint32_t tag, uint8_t *buf, size_t *size) {
FT_ULong ftsize = *size;
FT_Error error = FT_Load_Sfnt_Table(mTypeface, tag, 0, buf, &ftsize);