Add support for Korean.

This commit is contained in:
Jiho Choi
2015-09-24 00:50:00 +09:00
parent 77bcb7152b
commit cc53d31764
2 changed files with 13 additions and 0 deletions

View File

@ -1434,6 +1434,18 @@ const ImWchar* ImFontAtlas::GetGlyphRangesDefault()
return &ranges[0];
}
const ImWchar* ImFontAtlas::GetGlyphRangesKorean()
{
static const ImWchar ranges[] =
{
0x0020, 0x00FF, // Basic Latin + Latin Supplement
0x3131, 0x3163, // Korean alphabets
0xAC00, 0xD79D, // Korean characters
0,
};
return &ranges[0];
}
const ImWchar* ImFontAtlas::GetGlyphRangesChinese()
{
static const ImWchar ranges[] =