{"id":110401,"date":"2024-10-22T07:00:00","date_gmt":"2024-10-22T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=110401"},"modified":"2024-10-22T12:16:23","modified_gmt":"2024-10-22T19:16:23","slug":"20241022-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20241022-00\/?p=110401","title":{"rendered":"Did Windows 95 shrink the default font size of windowed MS-DOS apps?"},"content":{"rendered":"<p>The article <a href=\"https:\/\/gekk.info\/articles\/dosapps.html\"> Running DOS Apps on Windows<\/a> observed that in Windows 95, the default font for windowed MS-DOS sessions was 6\u00d78, compared to 8\u00d712 in Windows 3.1. Why did the font size change?<\/p>\n<p>Technically, the font size did not change from 8\u00d712 to 6\u00d78. What happened is that the font size changed from 8\u00d712 to <i>Auto<\/i>.<\/p>\n<p>The <i>Auto<\/i> font size means &#8220;Choose the largest font that avoids scroll bars.&#8221; You can grab the MS-DOS window and resize it, and the font size will adjust with the size of the window.<\/p>\n<p>These are MS-DOS sessions and not virtual consoles. There is no backscroll. The MS-DOS session thinks that it is talking to a video card, and it programmed the video controller into a specific text mode, say 80\u00d725. The number of rows and columns are fixed. If you resized the window bigger, you didn&#8217;t get more rows of text. There is no text to show!<\/p>\n<p>Windows 3.1 wouldn&#8217;t let you resize an MS-DOS session larger than the font size times the character size, so if you had an 80\u00d725 MS-DOS session with an 8\u00d712 font, you could resize the window up to (80 \u00d7 8) \u00d7 (25 \u00d7 12) = 640 \u00d7 300. It wouldn&#8217;t go any bigger, and if you went smaller, you got scroll bars. If you look closely at the screen shots of MS-DOS apps running in a window on Windows 3.0, you&#8217;ll see a horizontal scroll bar.<\/p>\n<p>The default size of a window in Windows 3.0 and Windows 95 is \u00be of the height and \u00be of the width of the screen. For a 640\u00d7480 screen, that comes out to 480\u00d7360, which is too narrow for an 8\u00d712 font, but is sufficient for a 6\u00d78 font, which requires 480\u00d7200 pixels.<\/p>\n<p>Windows 95 felt that it was ugly to open an MS-DOS prompt and immediately show scroll bars, so it defaulted to auto-choosing the largest font available provided it didn&#8217;t produce scroll bars. The default font on Windows 95 therefore varies with your screen size. If you are running at 640\u00d7480, then you get 6\u00d78. But if you are running at 1024\u00d7768 (which was more common), the default window size is 768\u00d7587, which will accommodate an 8\u00d712 font.<\/p>\n<p>Sometimes people observe that Windows 98 opened MS-DOS prompts with a larger font than Windows 95. But really what happened between Windows 95 and Windows 98 has nothing to do with default fonts. What happened is that you got a bigger monitor!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The effect was that it shrunk, but only sometimes.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[2],"class_list":["post-110401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-history"],"acf":[],"blog_post_summary":"<p>The effect was that it shrunk, but only sometimes.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/110401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=110401"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/110401\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=110401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=110401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=110401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}