Function ImGui::AddFontFromMemoryTTF#
Function Documentation#
-
ImFont *ImGui::AddFontFromMemoryTTF(std::span<const u8> fontData, f32 sizePixels, const ImFontConfig *fontCfg = nullptr, const ImWchar *glyphRanges = nullptr)#
Add a TTF font to ImGui from memory.
Remark
Headless mode: This function is not available in headless mode.
- Parameters:
fontData – Pointer to TTF data.
sizePixels – Font size in pixels.
fontCfg – Font configuration.
glyphRanges – Glyph ranges.
- Returns:
Pointer to the new font.