mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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
This commit is contained in:
parent
69f3585cf6
commit
05d59ee462
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user