summaryrefslogtreecommitdiff
path: root/src/mbgl/util/i18n.hpp
diff options
context:
space:
mode:
authorFabian Guerra Soto <fabian.guerra@mapbox.com>2017-05-23 12:02:09 -0400
committerGitHub <noreply@github.com>2017-05-23 12:02:09 -0400
commitfe17f7e8db266a125ac05d805003f5d2bf1548c6 (patch)
tree9d760b8f53dd60a363059ef6f776d8085be3990c /src/mbgl/util/i18n.hpp
parent71b686517298e100f8021dca62db65a2ca9baad2 (diff)
downloadqtlocation-mapboxgl-fe17f7e8db266a125ac05d805003f5d2bf1548c6.tar.gz
Cherry-pick arabic text to release branch v3.6.0 (#9071)
* [core] Throttle tiles to redo symbol placement at most once every 300ms. Fixes issue #8435 and prepares for pitch-scaling changes in issue #8967. * [core] Disable letter-spacing for Arabic labels (issue #9057)
Diffstat (limited to 'src/mbgl/util/i18n.hpp')
-rw-r--r--src/mbgl/util/i18n.hpp4
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. */