opcon / QuickFont

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

DLL Exceptions when loading a TTF font #57

Open DimucaTheDev opened 5 months ago

DimucaTheDev commented 5 months ago

So, when using new QFont(...) I get "DLL freetype6 not found", or after some manipulations I get this: System.BadImageFormatException: "Была сделана попытка загрузить программу, имеющую неверный формат. (0x8007000B)" like "An attempt was made to load an incorrect format program"

code: _myFont = new QFont("Fonts\\ARIAL.TTF", 72, new QFontBuilderConfiguration(true)); _drawing = new QFontDrawing(); full stack: Unhandled exception. System.BadImageFormatException: Была сделана попытка загрузить программу, имеющую неверный формат. (0x8007000B) at SharpFont.FT.FT_Init_FreeType(IntPtr& alibrary) at SharpFont.Library..ctor() at QuickFont.FreeTypeFont..ctor(String fontPath, Single size, FontStyle style, Int32 superSampleLevels, Single scale) at QuickFont.QFont.GetFont(String fontPath, Single size, FontStyle style, Int32 superSampleLevels, Single scale) at QuickFont.QFont..ctor(String fontPath, Single size, QFontBuilderConfiguration config, FontStyle style) at SparkEngine.Program.OnLoad() in C:\Users\DimucaTheDev\source\repos\SparkEngine\Program.cs:line 316 at OpenTK.Windowing.Desktop.GameWindow.Run() at SparkEngine.Program.Run() in C:\Users\DimucaTheDev\source\repos\SparkEngine\Program.cs:line 231 at SparkEngine.Program.Main(String[] args_) in C:\Users\DimucaTheDev\source\repos\SparkEngine\Program.cs:line 192

Windows 11, NET 8 OpenTK, using Wayfinder.Quickfont nuget packet, latest version Debug, X64 VC++ installed(2022)

tried to compile freetype6 myself, but i dunno how to get DLL instead of LIB

DimucaTheDev commented 5 months ago

p.s.: downloaded dll for windows from web caused the "Bad Image" issue, but now im stuck to where do i get normal freetype6.dll