1
0
mirror of synced 2024-11-28 01:20:51 +01:00

ui: Load in all extended-Ascii and control characters from unifont

This commit is contained in:
WerWolv 2022-12-25 10:01:21 +01:00
parent 4e22d636d3
commit df3d5e38ce

View File

@ -111,6 +111,14 @@ namespace hex::init {
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesKorean());
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesThai());
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesVietnamese());
{
constexpr static ImWchar controlCodeRange[] = { 0x0000, 0x001F, 0 };
constexpr static ImWchar extendedAsciiRange[] = { 0x007F, 0x00FF, 0 };
glyphRangesBuilder.AddRanges(controlCodeRange);
glyphRangesBuilder.AddRanges(extendedAsciiRange);
}
glyphRangesBuilder.BuildRanges(&ranges);
}