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. 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
  3. Screen goes black while switching between game and a different application

    in Windows 10 Gaming
    Screen goes black while switching between game and a different application: While playing games my screen will turn black or fade if I switch to a different application or if I click to Spotify on my second monitor. For example, up until yesterday I was able to click from my game on my primary monitor to Spotify on my secondary monitor and I would be...
  4. Difference between these drivers

    in Windows 10 Ask Insider
    Difference between these drivers: I tinkered with the built-in Realtek drivers of my newly bought laptop. After getting things mixed up, I uninstalled them from my PC and installed the one from the device support. (Just choose win10 64bit) Then to my surprise, the PC never produced any sound until I...
  5. I need to replace Arial font with a different font file for a specific application. Is...

    in Windows 10 Ask Insider
    I need to replace Arial font with a different font file for a specific application. Is...: Subject says it all ... I have a specific app (a karaoke player) which is hardcoded to use Arial. I need to replace this with a different font supporting one of the legacy ways of mapping diacritic characters to ASCII. Anyway, the app doesn't allow to choose a font. I've...
  6. Font size in word

    in Microsoft Office and 365
    Font size in word: Word 2016 has default font size of 11 but the size in any document when opened is very large maybe 18 or more. I cant change the size on any document Any thoughts 143691
  7. 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...
  8. 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
  9. Difference between ISO's?

    in Windows 10 Installation and Upgrade
    Difference between ISO's?: If I download a new ISO with the MediaCreation tool from MS today, will the ISO be different from launch day? Meaning, does it contain all updates and fixes that has been sent out since launch? 26015
  10. Words and Fonts are not sharp.

    in Windows 10 Support
    Words and Fonts are not sharp.: After I did the upgrade, the font of my system are just horrible. They are not as sharp as before, the best way to describe it, is that they look like they where printed with a misaligned print head, and I can't seem to find a way to fix it. Does anyone else have this...