ImGuiManager: Add CompactFontRange()

This commit is contained in:
Stenzek
2024-08-25 23:39:14 +10:00
parent e8b787fb57
commit a7f3d7b02d
3 changed files with 150 additions and 0 deletions

View File

@@ -26,6 +26,9 @@ void SetFontPathAndRange(std::string path, std::vector<WCharType> range);
/// Should NOT be terminated with zeros, unlike the font range above.
void SetEmojiFontRange(std::vector<WCharType> range);
/// Returns a compacted font range, with adjacent glyphs merged into one pair.
std::vector<WCharType> CompactFontRange(std::span<const WCharType> range);
/// Changes the global scale.
void SetGlobalScale(float global_scale);