Forums > C++ >

ImGui - Building the FontAtlas makes Roblox Laggy


Bones

deez nuts

Posts: 382

Threads: 10

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.

Who's Deez?

MaximusExploit

Maximus

Posts: 891

Threads: 33

Joined: Aug, 2020

Reputation: 16

Replied

directx hook then render

Bones

deez nuts

Posts: 382

Threads: 10

Joined: Mar, 2021

Reputation: 11

Replied

@MaximusExploit Got it working now. 

Who's Deez?