Added GetGlyphRangesGreek() helper for Greek & Coptic glyph range. (#5676, #5727)

This commit is contained in:
Andrew D. Zonenberg
2022-09-28 08:19:34 -07:00
committed by ocornut
parent d17627b9c6
commit e74a50f525
3 changed files with 14 additions and 1 deletions

View File

@ -2821,6 +2821,17 @@ const ImWchar* ImFontAtlas::GetGlyphRangesDefault()
return &ranges[0];
}
const ImWchar* ImFontAtlas::GetGlyphRangesGreek()
{
static const ImWchar ranges[] =
{
0x0020, 0x00FF, // Basic Latin + Latin Supplement
0x0370, 0x03FF, // Greek and Coptic
0,
};
return &ranges[0];
}
const ImWchar* ImFontAtlas::GetGlyphRangesKorean()
{
static const ImWchar ranges[] =