Closed LowSpecCorgi closed 3 years ago
Try using absolute paths instead?
Try using absolute paths instead?
getClass().getClassLoader().getResource("fonts/Roboto-Regular.ttf").getPath()
Does return an absolute path to the resource
Oh wait you were right
I'm stupid
thanks for help
Try using absolute paths instead?
getClass().getClassLoader().getResource("fonts/Roboto-Regular.ttf").getPath()
Does return an absolute path to the resource
I think that's a Java specific format of path. You need to give imgui (yes, imgui, not jimgui) a path that is recognizable by the C++ file IO library.
You're not stupid, you're cute!
So, I have a directory structure like so:
Loading both fonts seem successful, by merit of no exception and such:
But, when pushing the font like so:
Nothing happens. The text is rendered, but with the default ImGui font, I'm not particularly sure why this is happening.
Help would be appreciated :)