mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 14:35:46 -04:00
Register more glyph ranges supported by Roboto
Adds support for Polish, makes Russian use a default font
This commit is contained in:
@ -61,6 +61,26 @@ void ImGui::StyleColorsDarker(ImGuiStyle* dst)
|
||||
|
||||
void ImGui::AddRobotoRegularFont(float size /*= 15.0f*/)
|
||||
{
|
||||
static const ImWchar ranges[] = {
|
||||
// Basic Latin + Latin Supplement + Central European diacritics
|
||||
0x0020,
|
||||
0x017F,
|
||||
|
||||
// Cyrillic + Cyrillic Supplement
|
||||
0x0400,
|
||||
0x052F,
|
||||
|
||||
// Cyrillic Extended-A
|
||||
0x2DE0,
|
||||
0x2DFF,
|
||||
|
||||
// Cyrillic Extended-B
|
||||
0xA640,
|
||||
0xA69F,
|
||||
|
||||
0,
|
||||
};
|
||||
|
||||
ImGui::GetIO().Fonts->AddFontFromMemoryCompressedTTF(s_font_roboto_regular_compressed_data,
|
||||
s_font_roboto_regular_compressed_size, size);
|
||||
s_font_roboto_regular_compressed_size, size, nullptr, ranges);
|
||||
}
|
||||
|
Reference in New Issue
Block a user