Function ImGui::AddFontFromFileTTF#
Function Documentation#
-
ImFont *ImGui::AddFontFromFileTTF(std::string_view filename, f32 sizePixels, const ImFontConfig *fontCfgTemplate = nullptr, const ImWchar *glyphRanges = nullptr)#
Add a TTF font to ImGui from file.
Remark
Headless mode: This function is not available in headless mode.
- Parameters:
filename – Path to TTF file.
sizePixels – Font size in pixels.
fontCfgTemplate – Font configuration template.
glyphRanges – Glyph ranges.
- Returns:
Pointer to the new font.