Skip to content

[WINDOWS] Add support for UNICODE and Windows CE

Carlo Bramini requested to merge (removed):fix-wince-1 into master

I compiled FreeType-2.11.0 with arm-mingw32ce instead of the outdated and deprecated arm-wince-pe compiler and everything worked fine except few bits. Into builds/windows/ftsystem.c, the CreateFileA() function and GetFileSizeEx() function are not supported, but with few lines of code this can be fixed:

  1. in addition to CreateFileA(), support for CreateFileW() has been added by detecting UNICODE build. Actually, this is an improvement also for all NT versions of Windows, because now you won't be limited anymore to MAX_PATH.
  2. GetFileSize() provides equivalent functionality of GetFileSizeEx(), you just need to take care of testing also GetLastError() in addition to the return value of the function.

I hope that you will find it useful. Sincerely.

Merge request reports