Windows 10: Font differences between applications such as Terminal, VSCode, Word

Discus and support Font differences between applications such as Terminal, VSCode, Word in Windows 10 Support to solve the problem; I've been playing with C# scripting lately, primarily using VSCode as the IDE on Windows 10. Whilst displaying a table of some of the more esoteric... Discussion in 'Windows 10 Support' started by Michael Brooks, Jun 22, 2020.

  1. Font differences between applications such as Terminal, VSCode, Word


    I've been playing with C# scripting lately, primarily using VSCode as the IDE on Windows 10.
    Whilst displaying a table of some of the more esoteric characters from the old IBM PC codepage 437 that have been adopted into Unicode, I noticed differences in the rendering of the same character using the same font while in different applications.

    Take for example character D8 which in Unicode is 0x256A. The Wikipedia article on codepage 437 (Code page 437 - Wikipedia) shows this as a single vertical line with two parallel horizontal lines cutting across its middle.
    When I ran my program in the Console or in Windows Terminal, the single vertical line becomes two parallel vertical lines, and no lines cutting across any others. This seems to be consistent with any font, such as Consolas.
    When I display this character using Consolas in Word, I get a single vertical but it doesn't continue across the two parallel horizontals - it breaks so that there is an uninterrupted gap between the horizontal lines.
    When I display it in DEBUG CONSOLE in VSCode it displays the same as Word displays it. I have not been able to determine what font is used on this panel in VSCode though.

    Font differences between applications such as Terminal, VSCode, Word [​IMG]

    I'm clearly not a font expert - I was under the impression that the whole point of the operating system managing fonts meant that they look the same in all applications, but clearly that is not the case. So what's the story here?

    Regards,
    Michael

    :)
     
    Michael Brooks, Jun 22, 2020
    #1

  2. Font differences between applications such as Terminal, VSCode, Word

    I've been playing with C# scripting lately, primarily using VSCode as the IDE on Windows 10.
    Whilst displaying a table of some of the more esoteric characters from the old IBM PC codepage 437 that have been adopted into Unicode, I noticed differences in the rendering of the same character using the same font while in different applications.

    Take for example character D8 which in Unicode is 0x256A. The Wikipedia article on codepage 437 (Code page 437 - Wikipedia) shows this as a single vertical line with two parallel horizontal lines cutting across its middle.
    When I ran my program in the Console or in Windows Terminal, the single vertical line becomes two parallel vertical lines, and no lines cutting across any others. This seems to be consistent with any font, such as Consolas.
    When I display this character using Consolas in Word, I get a single vertical but it doesn't continue across the two parallel horizontals - it breaks so that there is an uninterrupted gap between the horizontal lines.
    When I display it in DEBUG CONSOLE in VSCode it displays the same as Word displays it. I have not been able to determine what font is used on this panel in VSCode though.

    Font differences between applications such as Terminal, VSCode, Word [​IMG]

    I'm clearly not a font expert - I was under the impression that the whole point of the operating system managing fonts meant that they look the same in all applications, but clearly that is not the case. So what's the story here?

    Regards,
    Michael
     
    Michael Brooks, Jun 26, 2020
    #2
  3. Font differences between applications such as Terminal, VSCode, Word

    Thanks for the reply Berton. If I'm following you correctly, I think you're saying that programs can choose whether or not to make use of the fonts provided by Windows. That means that different applications may display characters differently because they are not using the same fonts. That much I follow without difficulty.
    My problem arises with applications that have all chosen to apply the same font but the characters still appear differently. In the case of the Console, Windows Terminal, and Microsoft Word, these applications all allow me to select the font. I select the same font (Consolas), but the characters look different across the set of applications.
    It's very possible that I have misunderstood the point you were making though...
     
    Michael Brooks, Jun 26, 2020
    #3
  4. Font differences between applications such as Terminal, VSCode, Word

    Font differences between applications such as Terminal, VSCode, Word

    Yes, but again you seem to be describing different programs using different fonts - they will of course appear different because they are. And browsers are a special case because they have to try to render something that was defined elsewhere - i.e. they may not have the font that has been specified in the document.
    I am talking about pure Windows desktop programs. A Windows program will only allow the user to select the fonts that it can actually use - it will never give the option to choose Consolas if it cannot render a Consolas font. In my example all three programs (Console, Terminal, Word) include Consolas among the available set of fonts that the user may choose. But when I tell them to render Consolas, I see different results on some characters.
    The rendering should be performed by the relevant subsystem of the operating system and not by the applications themselves (no one writes character rendering code when the O.S. provides it ready-to-use), so what explains the different renderings?
     
    Michael Brooks, Jun 26, 2020
    #4
Thema:

Font differences between applications such as Terminal, VSCode, Word

Loading...
  1. Font differences between applications such as Terminal, VSCode, Word - Similar Threads - Font differences between

  2. Match font size between different applications

    in Windows 10 Software and Apps
    Match font size between different applications: OS: Win 11Problem: File explorer and system dialog font sizes don't match font size settings, and are far too small to read - see screenshot.Detail: System dialog and file explorer font sizes don't match the rest of the environment. File explorer font size is very small, and...
  3. Match font size between different applications

    in Windows 10 Gaming
    Match font size between different applications: OS: Win 11Problem: File explorer and system dialog font sizes don't match font size settings, and are far too small to read - see screenshot.Detail: System dialog and file explorer font sizes don't match the rest of the environment. File explorer font size is very small, and...
  4. How to fix this ? In VScode The terminal process "C:\Windows\System32\cmd.exe" terminated...

    in Windows 10 Gaming
    How to fix this ? In VScode The terminal process "C:\Windows\System32\cmd.exe" terminated...: The terminal process "C:\Windows\System32\cmd.exe" terminated with exit code: 4294967295. https://answers.microsoft.com/en-us/windows/forum/all/how-to-fix-this-in-vscode-the-terminal-process/d5e9115c-ac0a-40a1-8d9b-3dcb3f52c3f9
  5. How to fix this ? In VScode The terminal process "C:\Windows\System32\cmd.exe" terminated...

    in Windows 10 Software and Apps
    How to fix this ? In VScode The terminal process "C:\Windows\System32\cmd.exe" terminated...: The terminal process "C:\Windows\System32\cmd.exe" terminated with exit code: 4294967295. https://answers.microsoft.com/en-us/windows/forum/all/how-to-fix-this-in-vscode-the-terminal-process/d5e9115c-ac0a-40a1-8d9b-3dcb3f52c3f9
  6. What is the difference between an app and an application in Windows 10?

    in Windows 10 Customization
    What is the difference between an app and an application in Windows 10?: Apparently, since Windows 8 there has been a meaningful technical distinction between a Windows app and a Windows application, and the distinction became somehow more significant in Windows 10. Thinking this was a rather simple question that wouldn't take long to answer, I...
  7. Difference Between Notepad, WordPad and Word in Windows 10

    in Windows 10 News
    Difference Between Notepad, WordPad and Word in Windows 10: Microsoft has developed various software to ease our work in day-to-day life but sometimes we are not aware of the exact functions performed by the particular programs. Like Notepad, WordPad, and Microsoft Word, they may seem to perform similar tasks but they are different in...
  8. Difference between

    in Windows 10 Drivers and Hardware
    Difference between: Is there a significant difference between the 14" Pavilion Laptop and the 14" Stream Laptop? Thanks. Sean https://answers.microsoft.com/en-us/windows/forum/all/difference-between/c649a7f5-03d2-4ee9-9dab-d71a780e228f
  9. Interaction between applications running with different rights

    in Windows 10 Software and Apps
    Interaction between applications running with different rights: I have 2 Lenovo small form factor PCs, both running Windows 10 Pro and both set up identically to open and run a labelling application whenever it is launched from either the usual file associations through file explorer, or via hyperlinks in an excel spreadsheet. Both PCs...
  10. and Difference between

    in AntiVirus, Firewalls and System Security
    and Difference between: What is the difference between defender definition updates KB915597 and KB2267602? https://answers.microsoft.com/en-us/protect/forum/all/and-difference-between/090c74ba-f728-4424-ab7c-759bf9453aaf