i didn't use C++ to code it, i am using pychrono in python. As i said, i encountered this issue when i tried to use a custom font for a statictext (Irrlicht rendering). I prepared the font xml file and png using BMFont and when i called : pychrono.irrlicht..ChVisualSystemIrrlicht().GetDevice().getGUIEnvironment().getFont(filename), it throws the error TypeError: in method 'IGUIEnvironment_getFont', argument 2 of type 'irr::io::path const &' where the filename is the path "/Physics engine/chrono project/font/fontToUse.xml".
The same goes for addArrowMesh function that i used to setup an origin for the coords system. However, when i pass the name argument (something like "X-axis" ...) it throws the same error. Le mardi 19 août 2025 à 18:12:26 UTC+1, Dan Negrut a écrit : > Can you drop your cpp here? A small version that still shows the problem. > Can you run some demos or other small models? I wonder if this is an > installation issue. > Thanks. > Dan > > On Monday, August 18, 2025 at 8:04:14 AM UTC-5 [email protected] wrote: > >> When i try importing a font with getFont(filename) it doesn't work, throw >> the following error : >> TypeError: in method 'IGUIEnvironment_getFont', argument 2 of type >> 'irr::io::path const &' >> >> the same happened with GetSceneManager().addArrowMesh(), the first arg >> needs to be an 'irr::io::path const &' which throw an error when passing a >> string. > > -- You received this message because you are subscribed to the Google Groups "ProjectChrono" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/projectchrono/e9e94987-9caf-4c83-9689-d23e9244a762n%40googlegroups.com.
