Categories > Coding > C++ >

ImGui - Building the FontAtlas makes Roblox Laggy

Bones

deez nuts

Posts: 286

Threads: 6

Joined: Mar, 2021

Reputation: 11

Posted

I want to load an custom Font File which unfortunately does not really work out for me. 

This is the piece of code i am using to load an TTF Font and Build the FontAtlas

ImGuiIO& io = ImGui::GetIO();
io.Fonts->AddFontFromFileTTF("C:\\Config\\cream-DEMO.ttf", 16.0f); //dir exists
io.Fonts->Build(); //makes app laggy

The ImGui won't even show up, roblox's fps just drop to 5. Without custom Loaded font everything works fine for me.

  • 0

Who's Deez?

Posts: 675

Threads: 30

Joined: Aug, 2020

Reputation: 6

Replied

directx hook then render

  • 0

Bones

deez nuts

Posts: 286

Threads: 6

Joined: Mar, 2021

Reputation: 11

Replied

@MaximusExploit Got it working now. 

  • 0

Who's Deez?

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )