Trevor,

> I compiled a DLL of FreeType with MSVC.NET, and the library initializes
> fine, but I cant load a font (FT_New_Face(...);)
> 
> I am using
> 
> #define FT_EXPORT(x) x __cdecl
> 
> for my FT_EXPORT() macro as
> 
> __stdcall
> 
> causes the compiler to crash. I am using the most recent "stable release".

I guess to make DLL you have to use
#define  FT_EXPORT(x)  __declspec( dllexport ) x

> Any help as to whether my calling convention, compiler settings, or anything
> else might be the cause of FT_New_Face not working, would be very much 
> appriciated.
> 
> Note: I have tested the fonts I am using with a program I wrote that used 
> SDL_TTF (which wraps FreeType as I am sure you know) and the fonts loaded 
> and render correctly.
> 
> Thanks in advance, and for all the help you have all offered me so far.

I have some FreeType binaries available at
  http://kd.lab.nig.ac.jp/glyph-keeper/files.html
They work for me and my users. Compilation scripts are included in the
archives.

-- 
Best regards,
 Kirill



_______________________________________________
Freetype-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to