https://github.com/tgsstdio/dumbfont
.net core FreeType interop demo using FreeType's official Windows builds (>= 2.10)
https://github.com/tgsstdio/dumbfont
dotnet-core dotnet-standard freetype freetype-bindings
Last synced: 2 months ago
JSON representation
.net core FreeType interop demo using FreeType's official Windows builds (>= 2.10)
- Host: GitHub
- URL: https://github.com/tgsstdio/dumbfont
- Owner: tgsstdio
- License: mit
- Created: 2019-09-20T10:34:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-22T10:19:57.000Z (almost 7 years ago)
- Last Synced: 2025-05-29T19:01:17.630Z (about 1 year ago)
- Topics: dotnet-core, dotnet-standard, freetype, freetype-bindings
- Language: C
- Homepage:
- Size: 1.88 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DumbFont
## Version 2.10
.net core [FreeType][6] interop demo using FreeType's [official Windows builds][5] (>= 2.10)
## Credits
[SharpFont][4]
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
- See [SharpFont.Dependencies][3]'s custom FreeType [Win64 binaries][1] with [custom patch][2]
- See ["Size of 'long integer' data type (C++) on various architectures and OS"][7]
[1]: https://github.com/Robmaister/SharpFont.Dependencies/blob/master/freetype2/README.md
[2]: https://github.com/tgsstdio/DumbFont/blob/master/win64.patch
[3]: https://github.com/Robmaister/SharpFont.Dependencies
[4]: https://github.com/Robmaister/SharpFont
[5]: https://github.com/ubawurinna/freetype-windows-binaries
[6]: https://www.freetype.org/
[7]: https://software.intel.com/en-us/articles/size-of-long-integer-type-on-different-architecture-and-os