Implementing the console font table

Hugh McMaster hugh.mcmaster at
Tue Oct 13 07:43:07 CDT 2015

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.

2. Where to implement this functionality? In kernel32?

Any comments/opinions welcome.


Hugh McMaster

More information about the wine-devel mailing list