opcon / QuickFont

A Modern OpenGL Font Rendering Library for OpenTK
https://github.com/opcon/QuickFont
MIT License
83 stars 25 forks source link

Crash #42

Closed MutterOberin closed 5 years ago

MutterOberin commented 5 years ago

I am trying to use this nice project but get a "BadImageFormatException" right away.

Directly by calling "new QFont(font, size, new QFontBuilderConfiguration(true))"

MutterOberin commented 5 years ago

Looks like the freetype6.dll under SharpFont.Dependencies.2.6 is wrongly copied from the x86 instead of x64 folder when building. This might be caused by the "any" configuration. Anyone running into this issue should try to replace the dll manually.

opcon commented 5 years ago

Hi @MutterOberin,

Thanks for diagnosing the error! I might have a look at the configuration, and see why the wrong dll is being copied.

opcon commented 5 years ago

For now, the best thing to do is manually tell Visual Studio to copy the proper freetype.dll file the output directory, by adding it as a resource in a project that uses QuickFont. There is currently no support for determining which version of freetype is needed.