Welcome to MSDN Blogs Sign in | Join | Help

Where does 96 DPI come from in Windows?

Most Windows systems are shipped with the display DPI set to 96 PPI. (I’ll use the term PPI in this blog entry as it more accurately reflects usage for computer screens while DPI is more common for print usage. Windows tends to use the DPI acronym.) This setting is sometimes also called “Normal Size” or “Small Fonts.” Where does this 96 value come from?

Early Video Cards and Displays

In early versions of Microsoft Windows there were many display types to support, including the CGA, EGA, and later the VGA. These graphics adapters then drive the display monitor. The displays for CGA and EGA had rectangular pixels instead of the square pixels we typically see today.

Most of the displays were of very low resolution. The Macintosh display was 72 PPI while most of the “IBM” style displays were less than 72. The VGA displays were around 70 to 74 PPI.

The chart below shows some of the displays from the mid 1980’s.

Device Mode “Expanded Resolution” True Resolution Aspect Ratio
CGA 640×200 48×96 27.22×65.34 2.40:1
EGA 640×350 72×96 50.80×67.7 1.33:1
VGA 640×480 96×96 67.74×67.74 1:1
8514 1024×768 120×120 91.99×91.99 1:1
Macintosh (128K) 512×342 n/a 72×72 1:1

Macintosh Display

The Macintosh choice of 72 PPI was not arbitrary. Common wisdom holds that 72 PPI was chosen because one pixel would approximately equal one point. (I’m sure it didn’t hurt that most displays were fairly close to that range anyway.) The Xerox Alto used a similar point to pixel mapping. With 72 PPI on the Macintosh, a 10 point font would have an em of 10 pixels—or using the industry nomenclature, 10 points = 10 pixels per em (PPEm.)

The tradition in the print world was dominated by 10 pt type for most office communications. Using WYSIWYG Word Processors on a Macintosh would give PPEm of 10 pixels, and an x-height of around 5 pixels. That is a very small amount of room to display lowercase characters.

Because of this small space, many documents moved to 12 point on the Macintosh.

Viewing Distance

Compounding the problem of few pixels is the viewing distance of most displays. When reading a book or other piece of paper, the text is usually held at arms length distance. Computer monitors, on the other hand, tend to be farther away, somewhere around 1/3 the distance more than paper. The size of the text on your retina is impacted by the distance from the text. In order for the text to appear to be the same size, the text farther away must be larger.

Windows “solution” to this problem

The Windows solution was somewhat controversial. The decision was made to report the resolution of displays on Windows as about 1/3 greater than actual resolution. This roughly corresponds to the increased reading distance. So, for displays around 72 PPI, Windows would indicate 96 PPI. When IBM came out with the 8514 display, which was around 96 PPI, we added a new resolution for 120 PPI.

I’m not sure about other potential solutions that were investigated—like some type of a zoom factor, but the solution chosen was quite easy to integrate into the system.

Impacts of this Solution

There are both positive and negative aspects to this solution. On the positive side, it made text much more readable at equivalent point sizes on screen and paper. Eleven point text on Windows matched eight point on the Macintosh. It made it much easier for us to hint fonts for Windows as we realistically needed to only worry about 8 point (11 PPEm) and above. Users were able to look at and read the same sizes on print and screen.

The biggest negative was the measurement issue. If someone held a point ruler to the screen and measured the em, it would be smaller than we indicate.

In Windows 95, a feature was added to the Display->Settings->Advanced control panel to set a custom DPI value. The user can stretch a virtual ruler until it matches a physical ruler held up to the screen. If you’re asking why we didn’t query the monitor directly—see my previous post on ClearType Tuning. Using the correct PPI should give you accurate measurements.

An Interesting Twist

Although screen PPI has remained fairly constant in the almost twenty years since this decision was made, there has been some marginal improvement. But, in this same timeframe, many, many applications have been written for Windows with 96 PPI. Unfortunately, many of these applications have made assumptions about the size of a pixel and many dialog boxes and web pages have been designed around 96 PPI. As newer displays have come along, some, especially laptops have higher pixel densities. Unfortunately if one adjusts for this by using PPIs besides 96, then there is a risk of some applications or web pages not working properly.

Greg

Published Tuesday, November 08, 2005 9:57 AM by fbcontrb

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Where does 96 DPI come from in Windows?

Could you explain the difference between physical DPI and logical DPI? If I have the UseHR registry key set in Internet Explorer, the logical DPI remains at 96 regardless of my physical DPI which is 134.
Tuesday, November 08, 2005 4:09 PM by Brant Gurganus

# re: Where does 96 DPI come from in Windows?

The UseHR registry key is an Internet Explorer feature for dealing with the compatibility problem I mentioned in the end of the post. Since many web pages assume they are operating at 96 PPI, and they set widths and heights in pixels, this may “break” web pages running on higher PPI displays.

The logical DPI is set to 96 in order to keep the compatibility for things measured in pixels, and the physical DPI is set to the native resolution of the display. With these two values a scaling factor can be calculated to adjust the text and images.

Note that text, because of the use of scalable fonts, performs quite well with this scale factor, but images, especially those with text in the images, can perform quite poorly with scale factors. 192 PPI displays usually work quite well for the UseHR flag.

Greg
Wednesday, November 09, 2005 3:19 PM by fbcontrb

# re: Where does 96 DPI come from in Windows?

[Comment by Adam Twardoch]

Thank you for the article Greg, it's really very informative. In fact, I always wondered why Windows chose 96 over 72. Indeed, it made sense back then. Since then of course, computer displays evolved and these days, even the "Large Fonts" setting (120 PPI) doesn't work well on some displays.

I own a Dell notebook with the physical screen density of about 135 PPI.
(I prefer the term "density" when talking about the PPI screen resolution, as opposed to pixel sizes, e.g. 1024x768, which is also often called "screen resolution").

Unfortunately, with current GDI, many applications look badly when the Windows density is set to anything higher than 96 PPI. Some UI controls overlap, text go out of bounds etc. If you set the density to more than 120 PPI (e.g. 133 PPI), it gets even worse, some applications stop being usable. This of course applies mostly to badly written applications that were not sufficiently tested.

AFAIK, WPF (Avalon) is supposed to help here. I guess it will be a long way until applications UIs are designed in a usable, fully accessible way. Currently, it's actually a really big problem that is virtually absent from any usability discussions.

As for the Web pages, the Internet Explorer "UseHR" registry key is just a nasty hack, not a real solution. The by far most elegant solution to the problem is offered by the Opera browser (see http://www.opera.com/img/screenshots/opera8-zooming.jpg ): a combo box with a zoom factor. Something so obvious and present for years in Word or Excel, I never understood why it was not implemented in Internet Explorer from the very beginning. In most cases, the scale factor 150% works well for me in Opera (the 1.5 enlargement usually does not distort images very badly). Firefox does not offer the zoom combo box but at least it allows me to specify the smallest permissible font size to be used on web pages (this is set to 20 on my computer).

Unfortunately, Internet Explorer is practically useless on high-density screens. I hope this will change with IE7 though I have not followed its development yet.

[Continued in next comment...]
Thursday, November 10, 2005 3:35 PM by fbcontrb

# re: Where does 96 DPI come from in Windows?

[...Continued from previous comment]

Again, what puzzles me most is that the problem of pixel-size-specified dimensions in CSS definitions on web pages is practically absent from discussions about usability on the Web -- while it actually is a serious problem. Currently, with many web pages, one has the choice between seeing reasonable layout with tiny text (as shown on http://www.twardoch.com/tmp/vllg_ie.png , screenshot of the http://www.vllg.com website taken in IE, with the text on my screen being way too tiny to read) or seeing text at a comfortable reading size but with destroyed layout (see http://www.twardoch.com/tmp/vllg_ff.png , taken in Firefox).

*This* is the real issue of screen typography.

Adam

Thursday, November 10, 2005 3:37 PM by fbcontrb

# re: Where does 96 DPI come from in Windows?

And the only reason we started with 80 columns of text for the CRT, was because we had 80 columns on our PUNCH CARDS!
Sunday, November 13, 2005 5:30 PM by Blake Handler

# when 96 go up to 120 dpi

I suppose things on screen should become smaller, if I reset Windows monitor from
the usual 96 dpi to 120 dpi. As how
I understand it, the higher resolution, the
smaller things should be on monitor screen.

But it goes the opposite. What goes wrong
with my understanding?
Saturday, January 21, 2006 11:21 AM by Jack

# re: Where does 96 DPI come from in Windows?

When the resolution of a screen goes from 96 PPI to 120 PPI, the size of the pixels gets smaller; therefore everything on the display is smaller. When the Windows setting is used to increase the resolution from 96 DPI to 120 DPI, it is compensating for the smaller pixels, and therefore everything is larger.

Greg
Saturday, January 21, 2006 1:54 PM by fbcontrb

# re: Where does 96 DPI come from in Windows?

Thanks Greg for a great article - I am amazed that Windows persists with this type of hack.  

What should occur is the real dot density of the device should be used so that things can be displayed at their true size when required.  The 'zoom factor' used to make fonts more readable should always have been made obvious.

Now that LCD monitors really do have 96ppi (or more), people are setting their 17" LCDs to 1024x768 or 120dpi to get reasonable sized text.  

What a kludge!
Thursday, March 02, 2006 1:37 AM by Rob

# Convertion from screen resolution to print resolution

Handled a strange issue, wanted to share: One of my customers wanted to drag-drop an EMF file from her...
Monday, March 27, 2006 10:11 AM by Pranav ... Blogging

# re: Where does 96 DPI come from in Windows?

You really helped me in soving my issue..thanks, have a look at http://blogs.msdn.com/pranavwagh/archive/2006/03/27/screen_resolution2print_resolution.aspx
Monday, March 27, 2006 10:13 AM by Pranav Wagh

# re: Where does 96 DPI come from in Windows?

Mike: "For an alternative perspective go here blogs.msdn.com/fontblog/
where absolute morons argue with each other about fonts and other stuff"

This may be entirely true, but some of those morons are us, and you. And, we are talking about MS type, so we're MS type morons. If you read "Where does 96 DPI come from in Windows?", and all of the responses, you could easily say, "what morons are sticking to a 20 year-old response to Early Video Card and Display issues, rather than implementing a transparent, and scaleable GUI?"

Dear Greg,
we spoke of this issue in 2001, and I begged for future MS OS to go straight on this issue, or at LEAST, offer the option of doing so. By straight, I mean report the pixels of the display and translate that into dpi based on the size of the screen. From there, maintain the 1 pt. = 1/72nd of an inch ratio, and let the user choose the point size they need from a range including tenths of a point.

Why? A. The approximate lengths of arms and distances from screens varies. B. the precise text size required by a user is the most critical element in reading. C. "Actual Size" is important in some applications. D. if you'd done this from the first MS OS with TT, you'd have a fully scalable GUI by now, and would no longer have to worry about any of this, would you?
Tuesday, May 30, 2006 2:12 PM by dberlow

# re: Where does 96 DPI come from in Windows?

Wait!
"So, for displays around 72 PPI, Windows would indicate 96 PPI."
1.3x

"When IBM came out with [...] 96 PPI, we added a new resolution for 120 PPI"
1.25x

Really?
Tuesday, May 30, 2006 3:06 PM by dberlow

# re: Where does 96 DPI come from in Windows?

hello! which is there a recommend or optimal DPI setting for each video resolution? say 1280x1024 on a 17" monitor? tia!
Monday, July 17, 2006 5:40 PM by Pac0

# re: Where does 96 DPI come from in Windows?

1280×1024 on a 17″ display is 96 DPI. If your standard viewing distance is greater than the distance you would hold a book, I’d recommend 120 DPI. If it is the same or closer, I’d recommend 96 DPI.
Monday, July 17, 2006 6:29 PM by fbcontrb

# Fixing websites

As the 120 DPI gets more common, particularly on big name laptops, more and more CSS based websites are breaking (even if they use em, instead of px or pt).  

How can this be avoided?  Is there a guideline or set of advise on best practices regarding this?

If you tell people to change to 96 DPI, then websites work fine again.  But you cannot just tell umpteen thousand people to do that.

What's the fix/prevention?

Wednesday, January 31, 2007 11:37 AM by ReaderX

# re: Where does 96 DPI come from in Windows?

One way to figure out your DPI is to use some math.

W = Width in Pixels

H = Height in Pixels

S = Diagonal Size in Inches

SQRT(W^2 + H^2) / S

SQRT(1280^2 + 1024^2) / 17 = 96.42 DPI

Monday, February 19, 2007 11:41 AM by Remmy

# 96 DPI

I modified my DPI from 96 to 120, but the icons are too big and i can't return to the initial 96, apparantly i dont have the required files. However before i changed it, i worked, s what can i do??

Saturday, May 05, 2007 5:43 AM by Emil

# re: Where does 96 DPI come from in Windows?

Any idea on how to fix the horrible icon upsampling that is done in windows explorer (not IE) when dpi is upped to 120? I have tried playing around with desktop settings (and even got the 120 dpi theme from http://blogs.msdn.com/tonyschr/archive/2004/03/23/94391.aspx), but all I could fix is icons in the taskbar and start menu, not in explorer windows...

Tuesday, July 10, 2007 5:34 AM by gaetano

# re: Where does 96 DPI come from in Windows?

The only reason we read a book at arms length is that our arms are only a certain length....... I personally just sat back and read this from well more than a 1/3rd extra away.....

Monday, July 30, 2007 4:09 PM by Strodyn

# links for 2007-07-31 at The New Reader

Monday, July 30, 2007 10:24 PM by links for 2007-07-31 at The New Reader

# re: Where does 96 DPI come from in Windows?

Great article thanks, but...maybe I'm missing something here.

If my monitor's default ppi is 96, then how can you explain the following:

When I take a screen shot of a page then paste it into a 72ppi Fireworks document I don't get the dialogue 'The pasted image has a different resolution...' as I do when pasting into a document set at 96ppi.

Very confused, please help.

Wednesday, August 08, 2007 6:56 AM by Darren

# Lo hice y lo entend?? » Los DPI en pantalla en Windows y Linux

# 72ppi or 96ppi? - Pixalo Photography Community

Wednesday, November 28, 2007 5:21 PM by 72ppi or 96ppi? - Pixalo Photography Community

# re: Where does 96 DPI come from in Windows?

I am working with Professors Andy van Dam and John Hughes (Brown U) on a graphics textbook, and we are interested in relating this history behind the choice of 96 instead of 72.  But we'd prefer to avoid citing a blog entry as our "source" of this info.  Can you provide a citation that would be more appropriate for use in a textbook? DFSklar -at-- gmail ---dot----- com

Monday, January 14, 2008 9:17 PM by David F. Sklar

# what difference does it make to design web layouts/imagery at a ppi of 96ppi or 72ppi?

I understand how these values of 96 ppi and 72 ppi worked for older monitors, but doesn't it become moot when the user chooses their screen resolution (1600x1200) relative to their physical screen size (30 inch screen)?

My question stems from designing images for the web. At the end of the day, a pixel is a pixel. Wether you design it at 72 ppi, 96ppi, 1ppi, or 1000ppi. Whatever your pixel dimensions are for the image determines how big the image will be on the screen-not the ppi.

So my question to everyone is, what difference does it make to design web layouts/imagery at a ppi of 96ppi or 72ppi. I created an image with a ppi of 1 pixel per inch, that had dimensions of 500x500 pixels. Made the same image 2 more times at 72 and 96. All 3 times It showed up the same in all of my browsers.

I feel as though people are holding onto this 72 and 96 for the wrong reasons. Can someone please explain why it matters? I can see perhaps for printing, but even then with the wide range of screen sizes and chosen resolutions - what you see is not what your gonna get - no matter what dimensions you choose. I also went t print in Safari and Firefox, and they both ignored the 1 ppi - and treated it as a larger image.

Sunday, April 06, 2008 12:16 PM by Mitchell Gohman

# gohman decision point novel

Sunday, May 25, 2008 12:19 AM by gohman decision point novel

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker