summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaph Levien <raph@google.com>2014-06-26 14:00:43 -0700
committerRaph Levien <raph@google.com>2014-06-26 14:34:27 -0700
commit67ea671fe421d0e4642caef619ec39ec86bdcaef (patch)
tree0e4cf6facd692469bc6be87ee2c3ef6fa1952452
parent22e41754f6470ff1f4c0e0a56d01f7f555b59e21 (diff)
downloadandroid_frameworks_minikin-67ea671fe421d0e4642caef619ec39ec86bdcaef.tar.gz
android_frameworks_minikin-67ea671fe421d0e4642caef619ec39ec86bdcaef.tar.bz2
android_frameworks_minikin-67ea671fe421d0e4642caef619ec39ec86bdcaef.zip
Disable "palt" OpenType feature
Proper Japanese layout requires sophisticated rules for spacing punctuation, not just turning on the "palt" (proportional alternate) feature. Until we can support the whole set, roll back palt. Change-Id: If2359c529b70b1dd45dddc00e5f4aa1c91f8b0e9
-rw-r--r--libs/minikin/Layout.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/minikin/Layout.cpp b/libs/minikin/Layout.cpp
index 48db129..01b6599 100644
--- a/libs/minikin/Layout.cpp
+++ b/libs/minikin/Layout.cpp
@@ -621,7 +621,13 @@ void Layout::doLayoutWord(const uint16_t* buf, size_t start, size_t count, size_
static void addFeatures(vector<hb_feature_t>* features) {
// hardcoded features, to be repaced with more flexible configuration
static hb_feature_t palt = { HB_TAG('p', 'a', 'l', 't'), 1, 0, ~0u };
+
+ // Don't enable "palt" for now, pending implementation of more of the
+ // W3C Japanese layout recommendations. See:
+ // http://www.w3.org/TR/2012/NOTE-jlreq-20120403/
+#if 0
features->push_back(palt);
+#endif
}
void Layout::doLayoutRun(const uint16_t* buf, size_t start, size_t count, size_t bufSize,