Merge pull request #348 from zho7611/add_korean_support

ImFontAtlas: Added GetGlyphRangesKorean() for Korean.
This commit is contained in:
omar
2015-09-23 18:49:11 +02:00
2 changed files with 13 additions and 0 deletions

View File

@ -1458,6 +1458,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[] =