|
imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
|
Fonts to load at startup. More...
#include <user_interface_parameters.h>
Public Member Functions | |
| FontParameters (std::string path="", int size=12) | |
| Constructs parameters for a single font. | |
| FontParameters (const std::vector< std::pair< std::string, int > > &pathsAndSizes) | |
| Constructs parameters for multiple fonts. | |
Public Attributes | |
| std::vector< std::pair< std::string, int > > | pathsAndSizes |
| Font file paths and their pixel sizes. | |
Fonts to load at startup.
Each entry pairs a font file path (e.g. a .ttf) with a pixel size. The first entry becomes the default ImGui font. An empty path falls back to the ImGui default font.
| imgui_kit::FontParameters::FontParameters | ( | std::string | path = "", |
| int | size = 12 |
||
| ) |
Constructs parameters for a single font.
| path | Path to the font file; empty uses the ImGui default font. |
| size | Font size in pixels. |
| imgui_kit::FontParameters::FontParameters | ( | const std::vector< std::pair< std::string, int > > & | pathsAndSizes | ) |
Constructs parameters for multiple fonts.
| pathsAndSizes | Font file paths paired with their pixel sizes; the first entry is the default font. |
| std::vector<std::pair<std::string, int> > imgui_kit::FontParameters::pathsAndSizes |
Font file paths and their pixel sizes.