rigImGui 0.1.1
RigKit pack API - rigImGui
Loading...
Searching...
No Matches
FontPicker.h File Reference
#include <functional>
#include <string>
#include <vector>
Include dependency graph for FontPicker.h:

Namespaces

namespace  rigkit::FontPicker
 Reusable font path + optional size control for Preferences / effect UIs.

Functions

std::vector< std::string > rigkit::FontPicker::listInstalledFonts ()
 Filenames (not full paths) found under the fonts data directory.
std::string rigkit::FontPicker::resolveFontPath (const std::string &pathOrName)
 Resolve relative name against fonts dir, or return absolute path as-is.
bool rigkit::FontPicker::draw (const char *strId, std::string &path, float *sizePx, IMui *ui, std::function< void(std::string)> onBrowse=nullptr, float *weight=nullptr)
 Draw combo of installed fonts + Browse... (+ optional size / weight).
bool rigkit::FontPicker::bakeGlyphAtlas (const std::string &fontPathOrName, float sizePixels, const char *codepoints, unsigned &outTexture, int &outW, int &outH, std::vector< float > &outUVs)
 Bake a standalone glyph atlas (ImGui atlas builder to GL texture).