[core] include Hiragana and Katakana glyph ranges to LocalGlyphRasterizer

Fixes #14993
This commit is contained in:
Thiago Marcos P. Santos
2019-06-26 18:52:09 +03:00
parent 0ca8ea6f16
commit 848ad0d25e
2 changed files with 10 additions and 9 deletions

View File

@@ -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) {

View File

@@ -11,7 +11,7 @@
{
"type": "Feature",
"properties": {
"name": "身什戰 1"
"name": "身什戰アあ1"
},
"geometry": {
"type": "LineString",
@@ -30,7 +30,7 @@
{
"type": "Feature",
"properties": {
"name": "two 身什戰"
"name": "A身什戰アあ"
},
"geometry": {
"type": "LineString",
@@ -49,7 +49,7 @@
{
"type": "Feature",
"properties": {
"name": "身什戰33"
"name": "身什戰アあA"
},
"geometry": {
"type": "LineString",
@@ -68,7 +68,7 @@
{
"type": "Feature",
"properties": {
"name": "身什戰"
"name": "身什戰アあ"
},
"geometry": {
"type": "LineString",
@@ -87,7 +87,7 @@
{
"type": "Feature",
"properties": {
"name": "身什戰 five"
"name": "身什戰アあ5"
},
"geometry": {
"type": "LineString",
@@ -106,7 +106,7 @@
{
"type": "Feature",
"properties": {
"name": "six 身什戰"
"name": "B身什戰アあ"
},
"geometry": {
"type": "LineString",
@@ -125,7 +125,7 @@
{
"type": "Feature",
"properties": {
"name": "身什戰 seven"
"name": "身什戰アあS2"
},
"geometry": {
"type": "LineString",
@@ -144,7 +144,7 @@
{
"type": "Feature",
"properties": {
"name": "eight 身什戰"
"name": "8身什戰アあ"
},
"geometry": {
"type": "LineString",