summaryrefslogtreecommitdiff
path: root/src/mbgl/layout
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-05-20 13:53:43 -0700
committerChris Loer <chris.loer@mapbox.com>2017-05-22 10:54:45 -0700
commit6ceecb5581048b9554cc38a6b7b334f92592562a (patch)
tree98dcd2eada8d50e1dafa7ff572417c511868e113 /src/mbgl/layout
parent9e6a79ad9b8182105088ff21f1dcbaf3c5c9bb69 (diff)
downloadqtlocation-mapboxgl-6ceecb5581048b9554cc38a6b7b334f92592562a.tar.gz
[core] Disable letter-spacing for Arabic labels (issue #9057)
Diffstat (limited to 'src/mbgl/layout')
-rw-r--r--src/mbgl/layout/symbol_layout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index bfe1db7a73..bd9dbbc607 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -242,7 +242,7 @@ void SymbolLayout::prepare(const GlyphPositionMap& glyphs, const IconMap& icons)
/* horizontalAlign */ horizontalAlign,
/* verticalAlign */ verticalAlign,
/* justify */ justify,
- /* spacing: ems */ layout.get<TextLetterSpacing>() * oneEm,
+ /* spacing: ems */ util::i18n::allowsLetterSpacing(*feature.text) ? layout.get<TextLetterSpacing>() * oneEm : 0.0f,
/* translate */ Point<float>(layout.evaluate<TextOffset>(zoom, feature)[0] * oneEm, layout.evaluate<TextOffset>(zoom, feature)[1] * oneEm),
/* verticalHeight */ oneEm,
/* writingMode */ writingMode,