Hi guys, I’m a Mac user and just had some hard time getting Spritefonts to work on my game. As I couldn’t find a fix, I started to search for any fixes/workarounds.
The error happens when trying to build Spritefonts through MGCB-Editor, it suddenly stops, giving me a dotnet error. Cliked on report and noticed this error:
“Dyld Error Message:
Symbol not found: ____chkstk_darwin
Referenced from: /Users/USER/*/libfreetype6.dylib (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib”
From what I can understand, I wonder if the freetype lib that’s currently installed on my Mac was actually built from source in another Mac with an OS version (10.15) higher than what I’m currently using (10.13.6 - High Sierra), which could explain this incompatibility?
I could download the source of freetype lib from their official website and build it against High Sierra to see if can fix this issue but I’m really afraid to mess up with the system so instead I was able to find a workaround:
https://github.com/rds1983/FontStashSharp is one of them, but I couldn’t make it work yet
Another one was just downloading an already built “Font.xnb” file (found one here in this github page):
You can find it specifically on: https://github.com/CartBlanche/MonoGame-Samples/blob/master/CollisionSample/Content/Font.xnb
And just place it in your
folder. Now just follow this tutorial (Just go straight to “Using the Sprite Font” part):
And just build/run your game. You can’t change its size, but it works, as I’m interested for debugging purposes. But I’m yet to find how to fix this issue with MGCB + Spritefonts so I appreciate if anyone can help ˆ_ˆ