Skip to content

Commit 168a811

Browse files
committed
Added codepoint U+3000 (Ideographic space) and Katakana Phonetic Extensions to GetGlyphRangesChinese/GetGlyphRangesJapanese
1 parent 441679d commit 168a811

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

imgui.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7379,7 +7379,9 @@ const ImWchar* ImFontAtlas::GetGlyphRangesChinese()
73797379
static const ImWchar ranges[] =
73807380
{
73817381
0x0020, 0x00FF, // Basic Latin + Latin Supplement
7382+
0x3000, 0x3000, // Ideographic Space
73827383
0x3040, 0x30FF, // Hiragana, Katakana
7384+
0x31F0, 0x31FF, // Katakana Phonetic Extensions
73837385
0xFF00, 0xFFEF, // Half-width characters
73847386
0x4e00, 0x9FAF, // CJK Ideograms
73857387
0,
@@ -7427,10 +7429,12 @@ const ImWchar* ImFontAtlas::GetGlyphRangesJapanese()
74277429
109,2,18,23,0,0,9,61,3,0,28,41,77,27,19,17,81,5,2,14,5,83,57,252,14,154,263,14,20,8,13,6,57,39,38,
74287430
};
74297431
static int ranges_unpacked = false;
7430-
static ImWchar ranges[6 + 1 + IM_ARRAYSIZE(offsets_from_0x4E00)*2] =
7432+
static ImWchar ranges[10 + 1 + IM_ARRAYSIZE(offsets_from_0x4E00)*2] =
74317433
{
74327434
0x0020, 0x00FF, // Basic Latin + Latin Supplement
7435+
0x3000, 0x3000, // Ideographic Space
74337436
0x3040, 0x30FF, // Hiragana, Katakana
7437+
0x31F0, 0x31FF, // Katakana Phonetic Extensions
74347438
0xFF00, 0xFFEF, // Half-width characters
74357439
0,
74367440
};

0 commit comments

Comments
 (0)