Menu

#29 SetConsoleFont has unclear documentation

open
nobody
5
2008-05-28
2008-05-28
No

Version: 6.12.00 Build: 2

SetConsoleFont in console.f at line 254 has the following comment:
\ Usage of SetConsoleFont:
\
\ Font cFont
\ 16 Height: cFont
\ 8 Width: cFont
\ s" Courier New" SetFaceName: cFont
\ FW_NORMAL Weight: cFont
\ Create: cFont
\ Handle: cFont SetConsoleFont
\ zHandle: cFont \ don't let Win32Forth destroy the font; the console does it !!!

But "zHandle:" is undefined, which, together with the triple exclamation, makes me a kind of unsure about what should I do then.

Also, when I just omit that line, the console window is not refreshed properly until after I select some text manually.

By the way, is it normal for the default font to be a 5x8 eyestrainer? Is there a more proper way to fix it besides setting font in Win32forUser.cfg?

Discussion


Log in to post a comment.