imgui_load_font
Load a TTF or OTF font into the live ImGui atlas under a stable ID, with support for glyph ranges, pixel size, and optional icon/fallback merging.
Instructions
Load a TTF or OTF font into the live ImGui atlas under a stable ID. Use imgui_set_font to make it the global default.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"path": "<path>"
},
"name": "imgui_load_font"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique font identifier | |
| path | Yes | Native-app-visible TTF or OTF path | |
| merge_into | No | Optional loaded font ID to merge this face into (for icon/symbol fallback fonts) | |
| size_pixels | No | Font size in pixels (default 16) | |
| glyph_ranges | No | Glyph coverage preset (default: unicode) |