Replies: 2 comments
-
Here is the font adding code, just for reference (pretty much unchanged from the example, just priorities are set to highest in both cases)
|
Beta Was this translation helpful? Give feedback.
-
After some more digging, I found the location where The whole families thing wasn't right either. But now stuff works, maybe somebody stumbles over this as well. I presume a more polished SDL2 integration (similar to eframe) would help, maybe I have a crack on that. |
Beta Was this translation helpful? Give feedback.
-
The title pretty much says it. I've followed the
custom_font.rs
-example, but put it on my project using the SDL2 backend (egui_sdl2_platform = { version="0.2.2", path="./modules/egui_sdl2_platform" , features=["sdl2_ttf"]}
).It registers the font alright, but then when attempting to access the fonts (and printing the registered ones for inspection first), the program crashes.
puts out
In my attempt to investigate this, I discovered
egui/crates/egui/src/context.rs
Line 1345 in 5cf8a08
which is where the trail ends for me - this variable is never read in a way that I can figure out.
Any suggestions are very welcome.
Beta Was this translation helpful? Give feedback.
All reactions