ImGuiManager: Move glyph ranges to separate file

This commit is contained in:
Stenzek
2024-08-25 22:52:21 +10:00
parent f37a97bf18
commit f30844cc40
5 changed files with 139 additions and 40 deletions

View File

@ -4,6 +4,7 @@
#pragma once
#include "common/types.h"
#include <span>
#include <string>
#include <vector>
@ -21,6 +22,10 @@ using WCharType = u32;
/// Sets the path to the font to use. Empty string means to use the default.
void SetFontPathAndRange(std::string path, std::vector<WCharType> range);
/// Sets the emoji font range to use. Empty means no glyphs will be rasterized.
/// Should NOT be terminated with zeros, unlike the font range above.
void SetEmojiFontRange(std::vector<WCharType> range);
/// Changes the global scale.
void SetGlobalScale(float global_scale);