MonoGame / MonoGame.Dependencies

The MonoGame binary dependencies submodule.
38 stars 51 forks source link

Update SharpFont and freetype for linux #131

Closed Jjagg closed 5 years ago

Jjagg commented 5 years ago

The original freetype6 file for some reason failed to load. I ran into this issue while making MGCB run on .NET Core. The linux freetype lib is currently not included in any builds (though it should be), so this can't break anything.

We had an old version of SharpFont that specified freetype6.dll as the lib for DllImport, so it was unable to load the linux or Mac native libraries. I built a newer version (also changed the target to .net standard 2.0) that used freetype6 as the library so .NET Core will succesfully find libfreetype6.so and libfreetype6.dylib on Linux and Mac respectively.

The SharpFont dll was built from https://github.com/Jjagg/SharpFont/tree/netstandard.