Fixed rendering of horizontal ellipsis in ImGui controls

This commit is contained in:
Lukas Matena 2023-05-04 13:56:05 +02:00
parent 234956dfda
commit a039391131

View File

@ -1620,6 +1620,8 @@ void ImGuiWrapper::init_font(bool compress)
ImFontGlyphRangesBuilder builder;
builder.AddRanges(m_glyph_ranges);
builder.AddChar(ImWchar(0x2026)); // …
if (m_font_cjk) {
// This is a temporary fix of https://github.com/prusa3d/PrusaSlicer/issues/8171. The translation
// contains characters not in the ImGui ranges for simplified Chinese. For now, just add them manually.