base
base copied to clipboard
Tessfont is unable to print to console on Windows
As tessfont is compiled as a Windows program, it can't, by default, print to stdout/stderr. Access to the console needs to be opened and written via the proper Windows methods unless the program is compiled as a console application (probably easier).
Switching from the GUI to the console subsystem is much easier than making Tessfont create its own output window.
- With MSVC, the program should be compiled with
/SUBSYSTEM:CONSOLEinstead of/SUBSYSTEM:WINDOWS. - With MinGW, the program should be compiled with
-Wl --subsystem consoleinstead of-Wl --subsystem windows.
Awesome, thanks.