Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImGuiIO& io = ImGui::GetIO();
- ImGuiStyle& style = ImGui::GetStyle();
- //ImFontConfig fontConfig = GetFontConfig();
- ImFontAtlas* fontAtlas = io.Fonts;
- ImFontConfig fontConfig;
- fontConfig.SizePixels = 16.0f; // Set the font size
- //fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 18.0f);
- if (!fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 52.0f)) {
- MASH_cout << "ERROR";
- }
- ImFont* font = fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 18.0f);
- ImGui::Begin("Main Menu"
- ,nullptr
- ,ImGuiWindowFlags_NoTitleBar |
- ImGuiWindowFlags_NoResize |
- ImGuiWindowFlags_NoMove |
- ImGuiWindowFlags_NoScrollbar |
- //ImGuiWindowFlags_NoBackground |
- ImGuiWindowFlags_AlwaysAutoResize
- );
- ImGui::PushFont(font);
- ImGui::Text("ECONOMY APP");
- ImGui::PopFont();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement