summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2019-06-26 18:52:09 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2019-06-28 15:19:58 +0300
commit848ad0d25e3ac4374447b7fb8e29c23cedc148be (patch)
tree2a1991fb1e501d57e6fcd2af3414a82652fc2ebc /src
parent0ca8ea6f169149cd414a65f40d0f7bdd40f3cca3 (diff)
downloadqtlocation-mapboxgl-848ad0d25e3ac4374447b7fb8e29c23cedc148be.tar.gz
[core] include Hiragana and Katakana glyph ranges to LocalGlyphRasterizer
Fixes #14993
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/util/i18n.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mbgl/util/i18n.cpp b/src/mbgl/util/i18n.cpp
index d98ac8dbf9..d3364f5e53 100644
--- a/src/mbgl/util/i18n.cpp
+++ b/src/mbgl/util/i18n.cpp
@@ -415,7 +415,8 @@ bool allowsIdeographicBreaking(char16_t chr) {
bool allowsFixedWidthGlyphGeneration(char16_t chr) {
// Mirrors conservative set of characters used in glyph_manager.js/_tinySDF
- return isInCJKUnifiedIdeographs(chr) || isInHangulSyllables(chr);
+ return isInCJKUnifiedIdeographs(chr) || isInHangulSyllables(chr)
+ || isInKatakana(chr) || isInHiragana(chr);
}
bool allowsVerticalWritingMode(const std::u16string& string) {