base icon indicating copy to clipboard operation
base copied to clipboard

Tessfont is unable to print to console on Windows

Open qreeves opened this issue 4 years ago • 2 comments

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).

qreeves avatar Jul 15 '21 11:07 qreeves

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:CONSOLE instead of /SUBSYSTEM:WINDOWS.
  • With MinGW, the program should be compiled with -Wl --subsystem console instead of -Wl --subsystem windows.

Calinou avatar Jul 15 '21 14:07 Calinou

Awesome, thanks.

qreeves avatar Jul 15 '21 15:07 qreeves