C++ MFC TextOut/DrawText: some characters are wider in other programs in Consolas 9

Zoltán Hegedüs 101 Reputation points
2021-04-05T13:30:03.213+00:00

My English is not perfect. I am using a high dpi monitor, so at the settings of Windows, there is 3 multipled by 96 dpi = 288 dpi. (0,16 mm multipled by 3 = 0,48 mm, I have some short sight = myopia). (This website eats asterix characters).

I am using the font Consolas 9, so, really Consolas 27.
At my own program (Visual C++ with MFC, with TextOutW and DrawText), some characters, for example ∃ ∄ ∀, about as wide as other characters. In other programs, for example Visual Studio, LibreOffice Writer, these are wider than others: for example the numbers. How can I write the wider version to the display? And how can I get the width without displaying them? Thank you.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes