imgui-platform-kit 2.0.0
Cross-platform Dear ImGui application framework
Loading...
Searching...
No Matches
imgui_kit::FontParameters Struct Reference

Fonts to load at startup. More...

#include <user_interface_parameters.h>

Collaboration diagram for imgui_kit::FontParameters:
[legend]

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FontParameters() [1/2]

imgui_kit::FontParameters::FontParameters ( std::string  path = "",
int  size = 12 
)

Constructs parameters for a single font.

Parameters
pathPath to the font file; empty uses the ImGui default font.
sizeFont size in pixels.

◆ FontParameters() [2/2]

imgui_kit::FontParameters::FontParameters ( const std::vector< std::pair< std::string, int > > &  pathsAndSizes)

Constructs parameters for multiple fonts.

Parameters
pathsAndSizesFont file paths paired with their pixel sizes; the first entry is the default font.

Member Data Documentation

◆ pathsAndSizes

std::vector<std::pair<std::string, int> > imgui_kit::FontParameters::pathsAndSizes

Font file paths and their pixel sizes.


The documentation for this struct was generated from the following file: