summaryrefslogtreecommitdiff
path: root/src/mbgl/layout/symbol_layout.cpp
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-04 14:44:22 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-13 13:32:56 +0300
commit1b9d4d792cbd877f627987cbd0d5ed41709375c8 (patch)
tree5571f19bc807620e61a5762e41a8e2c2a6561134 /src/mbgl/layout/symbol_layout.cpp
parent03bb17f8c506164efa39708cd2caea7aa11403f7 (diff)
downloadqtlocation-mapboxgl-1b9d4d792cbd877f627987cbd0d5ed41709375c8.tar.gz
[core] Render half-width glyphs in upright orientation
This change forces glyphs whose natural orientation in vertical writing mode is 'sideways' to be rendered in upright orientation (only for non complex text layouts). This is different compared to W3C / browser behavior that is by default, renders glyphs in their respective natural orientation. In the future, there might need to add a new layout property that would control glyph orientation separately (e.g., text-glyph-orientation: natural | upright).
Diffstat (limited to 'src/mbgl/layout/symbol_layout.cpp')
-rw-r--r--src/mbgl/layout/symbol_layout.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/layout/symbol_layout.cpp b/src/mbgl/layout/symbol_layout.cpp
index be6444bb16..dbf209b414 100644
--- a/src/mbgl/layout/symbol_layout.cpp
+++ b/src/mbgl/layout/symbol_layout.cpp
@@ -314,7 +314,8 @@ void SymbolLayout::prepareSymbols(const GlyphMap& glyphMap, const GlyphPositions
/* translate */ textOffset,
/* writingMode */ writingMode,
/* bidirectional algorithm object */ bidi,
- /* glyphs */ glyphMap);
+ /* glyphs */ glyphMap,
+ allowVerticalPlacement);
return result;
};