diff options
author | Chris Loer <chris.loer@gmail.com> | 2017-05-20 13:53:43 -0700 |
---|---|---|
committer | Chris Loer <chris.loer@mapbox.com> | 2017-05-22 10:54:45 -0700 |
commit | 6ceecb5581048b9554cc38a6b7b334f92592562a (patch) | |
tree | 98dcd2eada8d50e1dafa7ff572417c511868e113 /src/mbgl/util/i18n.hpp | |
parent | 9e6a79ad9b8182105088ff21f1dcbaf3c5c9bb69 (diff) | |
download | qtlocation-mapboxgl-6ceecb5581048b9554cc38a6b7b334f92592562a.tar.gz |
[core] Disable letter-spacing for Arabic labels (issue #9057)
Diffstat (limited to 'src/mbgl/util/i18n.hpp')
-rw-r--r-- | src/mbgl/util/i18n.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/util/i18n.hpp b/src/mbgl/util/i18n.hpp index 186212f50d..61c5a1ea96 100644 --- a/src/mbgl/util/i18n.hpp +++ b/src/mbgl/util/i18n.hpp @@ -10,6 +10,10 @@ namespace i18n { by the given Unicode codepoint due to word breaking. */ bool allowsWordBreaking(char16_t chr); +/** Returns whether the given string can be displayed with letter-spacing. + False for Arabic scripts, where letter-spacing will break ligatures. */ +bool allowsLetterSpacing(const std::u16string& string); + /** Returns whether a line break can be inserted after any character in the given string. If false, line breaking should occur on word boundaries instead. */ |