summaryrefslogtreecommitdiff
path: root/src/mbgl/text/glyph_set.hpp
diff options
context:
space:
mode:
authorMinh Nguyễn <mxn@1ec5.org>2016-11-14 14:53:21 -0800
committerGitHub <noreply@github.com>2016-11-14 14:53:21 -0800
commitdbd22357441ec66c46cc7e46a01ed114a18f685c (patch)
tree7f4af9a1276139863b6828b6f7ea152fd5b954a9 /src/mbgl/text/glyph_set.hpp
parent1c79147a84fe9f852fa21bcf5629f490e8e2a8bf (diff)
downloadqtlocation-mapboxgl-dbd22357441ec66c46cc7e46a01ed114a18f685c.tar.gz
[core] Line-break ideographic text by character (#6828)
* [core] Line-break ideographic text by character Allow a line break to be inserted after any supported Chinese, Japanese, or Yi character in a point-placed label. Balance the lines unless non-ideographic text such as Latin letters are present. Fixes #1223. * [core] Moved more character classing into util::i18n * [core] Detect character properties by Unicode block * [test] Reenabled ideographic breaking tests
Diffstat (limited to 'src/mbgl/text/glyph_set.hpp')
-rw-r--r--src/mbgl/text/glyph_set.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/text/glyph_set.hpp b/src/mbgl/text/glyph_set.hpp
index 37ffdb070a..fed7960a5f 100644
--- a/src/mbgl/text/glyph_set.hpp
+++ b/src/mbgl/text/glyph_set.hpp
@@ -13,7 +13,8 @@ public:
float horizontalAlign, float verticalAlign, float justify,
float spacing, const Point<float> &translate) const;
void lineWrap(Shaping &shaping, float lineHeight, float maxWidth, float horizontalAlign,
- float verticalAlign, float justify, const Point<float> &translate) const;
+ float verticalAlign, float justify, const Point<float> &translate,
+ bool useBalancedIdeographicBreaking) const;
private:
std::map<uint32_t, SDFGlyph> sdfs;