I am working with GDC on Linux x86-64 and encountered some bug(s) in freetype.fttypes which resulted in getting a lot of segfaults. The Solution was hard to find but easy to do. Its just some 32 vs 64 Bit problems. With the following modifications it works nicely for me.
* FT_Pos is defined as int, should be size_t
* FT_F26Dot6 and FT_Fixed are defined as int, should be ptrdiff_t (sounds strange, but in the original C-Header its "long", and I think we should match)
* FT_Offset, FT_PtrDiff, FT_Long, FT_ULong are defined according to version=CPU64BIT. Would be better to declare it as size_t/ptrdiff_t. (At least I needed it, cause CPU64BIT wasn't defined. But that may be, because I simply copied some code into my project, and not not used the real derelict lib. But anyway, would be nice to work for that case too)