Automatically generate the glyph range for locales

This commit is contained in:
Guillaume Meunier
2024-06-20 21:24:31 +02:00
parent 02432b730b
commit 78b26c53fd
4 changed files with 115 additions and 22 deletions
+8
View File
@@ -131,6 +131,12 @@ private:
bool button_pressed = false;
ImFontGlyphRangesBuilder glyph_range_builder;
ImVector<ImWchar> glyph_ranges;
bool glyph_range_dirty = true;
void initialize_fonts();
public:
imgui_context(
vk::raii::PhysicalDevice physical_device,
@@ -210,4 +216,6 @@ public:
ImTextureID load_texture(const std::string & filename);
void free_texture(ImTextureID);
void set_current();
void add_chars(std::string_view sv);
};