Implementing the console font table

Alexandre Julliard julliard at
Wed Oct 14 07:39:17 CDT 2015

Hugh McMaster <hugh.mcmaster at> writes:

> I'm implementing a version of the console font table, as it is needed by GetCurrentConsoleFont and friends.
> The Windows VMs on the testbot have the console font tables listed in
> [1]. As you can see, most of the font tables are the same (although
> the table itself depends on the host configuration).
> If the user changes the console font size, the new size is added to the table (if it is not already listed) and the active font index (nFont) re-assigned.
> 1. How much of the Windows table should be implemented in Wine?
> (Windows programs call GetCurrentConsoleFont, then pass the active
> font index to GetConsoleFontSize to retrieve the actual cell
> width/height). Keep in mind that Wine generally uses fonts not
> available on Windows, meaning the testbot data is somewhat irrelevant.
> It seems to me that we could simply use the registry font size as index 0 and add any new font sizes selected by the user to the array later.

Do you have an app that depends on this?  Otherwise you can probably
pretend that the current font is the only one in the table.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list