I will speak from my heart with google translate(c)
How to change the default font?
here's what I found:
Code: Select all
Load .TTF file with:
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels);
Code: Select all
Load .TTF file with:
ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("font.ttf", size_pixels);
Code: Select all
function createAwesomeGame()
local game = game:create()
game:setAwesome(true)
return game
end