opcon / QuickFont

A Modern OpenGL Font Rendering Library for OpenTK

Home Page:https://github.com/opcon/QuickFont

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash

MutterOberin opened this issue · comments

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

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

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.

Hi @MutterOberin,

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

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.