pure-data / pdfontloader

tiny TCL extension to load fonts into the Pure Data GUI on Windows
2 stars 2 forks source link

Other probably missing headers #3

Closed Lucarda closed 6 years ago

Lucarda commented 6 years ago

Did you look this: https://sourceforge.net/p/irrational-numbers/code/HEAD/tree/pkgs/extrafont-devkit/trunk/src/extrafont.c

also looks that:

include

include

is needed for windows to load the fonts.

danomatika commented 6 years ago

It builds ok without as Windows.h is included via tcl.h and we don't need wingdi.h for the functions that are needed.

Lucarda commented 6 years ago

It builds ok without......

Yes it builds but is rather empty or without any Entry Point.

Also the AddFontResource function: https://msdn.microsoft.com/en-us/library/windows/desktop/dd183326(v=vs.85).aspx Requires:

Wingdi.h (include Windows.h)

Here a pic of “pdloader.dll” analyzed with http://www.dependencywalker.com/ for 32bit.

fontload2

And here “extrafont.dll” (it calls gdi32.dll, the wingdi.h mentioned above) and also have a Funcion Name and an Entry Point:

fontload1

danomatika commented 6 years ago

Fixed. It was an issue with the makefile and both headers are indeed needed.