Advertisement
RealDevMashup

Untitled

Sep 17th, 2023
1,090
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ImGuiIO& io = ImGui::GetIO();
  2. ImGuiStyle& style = ImGui::GetStyle();
  3. //ImFontConfig fontConfig = GetFontConfig();
  4. ImFontAtlas* fontAtlas = io.Fonts;
  5.  
  6. ImFontConfig fontConfig;
  7. fontConfig.SizePixels = 16.0f; // Set the font size
  8.  
  9. //fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 18.0f);
  10. if (!fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 52.0f)) {
  11. MASH_cout << "ERROR";
  12. }
  13. ImFont* font = fontAtlas->AddFontFromFileTTF("Res/Fonts/SuperFunky.ttf", 18.0f);
  14. ImGui::Begin("Main Menu"
  15. ,nullptr
  16. ,ImGuiWindowFlags_NoTitleBar |
  17. ImGuiWindowFlags_NoResize |
  18. ImGuiWindowFlags_NoMove |
  19. ImGuiWindowFlags_NoScrollbar |
  20. //ImGuiWindowFlags_NoBackground |
  21. ImGuiWindowFlags_AlwaysAutoResize
  22. );
  23. ImGui::PushFont(font);
  24. ImGui::Text("ECONOMY APP");
  25. ImGui::PopFont();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement