Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.44 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.44 KB

DumbFont

Version 2.10

.net core FreeType interop demo using FreeType's official Windows builds (>= 2.10)

Credits

SharpFont

Utility classes taken from library.

Developer Note

Handling "long" with Interops duplication

Interops structs & external bindings are duplicating to handle C long data type (either 4 or 8 bytes) varies based on OS and CPU used throughout FreeType.

OS CPU sizeof(long)
Windows IA-32 4 bytes
Intel® 64 4 bytes
Linux IA-32 4 bytes
Intel® 64 8 bytes
mac OS Intel® 64 8 bytes
  • Therefore on Windows for Intel, long are always 4 bytes
  • Linux (for Intel CPUs) long are either 4 or 8 bytes
  • On MacOS, long is always 8 bytes

Links