Closed ghost closed 5 years ago
On linux this program only uses about 15mb of memory before the program panics, and the font file I'm loading is only about 120kb in size.... My laptop has 16gb of memory with atleast 10gb free while running. This laptop is running Arch Linux with Gnome and uses embedded graphics, So I wonder if maybe the program is running out of VRAM or something? I don't know what parts of SDL are loading surfaces/textures into VRAM but I assume my integrated intel GPU can handle a font file.
Hi @rucuriousyet, I'm really sorry for taking so long to respond! It seems you supplied too big of a point size to ttf.OpenFontRW()
. Once you put a reasonable value, it should work!
The title kinda says it all, here's the code I'm working with:
just note that everything works perfectly when I call OpenFont (with a file). The end goal here is to embed fonts as constants and load them using rwops in order to have a completely standalone binary.
And yes, I totally wrote this while watching comedy skit from Jim Gaffigan... which is where those slides sentences are coming from LOL.