|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Zealot
![]() ![]() Join Date: Dec 2000
Location: home
Posts: 167
|
72/96dpi Mac/PC
Is it correct that PC uses 96dpi and Mac uses 72dpi?
And if it is, could someone please explain why.
__________________
Why is duck? Last edited by ruben; Mar 12, 2004 at 07:57.. |
|
|
|
|
|
#2 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Aug 2003
Location: Minnesota
Posts: 1,815
|
You mean for screen resolution? I'm pretty sure 72dpi is the standard resolution no matter what platform you are running. It basically alters the size displayed on screen. For example, a 2"x2" image at 72dpi (144x144pixels) will show up the same size on screen as a 1.5"x1.5" image at 96dpi (also 144x144pixels). Maybe someone with more knowledge on the subject can chime in though to verify.
__________________
Kevin Hauge : Modern Leaf Design : Follow Us on Facebook Client Axis v.08 - client / project management script |
|
|
|
|
|
#3 |
|
SitePoint Zealot
![]() ![]() Join Date: Dec 2000
Location: home
Posts: 167
|
What I know is this: If you make an image that fits perfectly in the frame of a PowerPoint presentation in Mac (can't remember the exact numbers), it won't fit in a presentation on a PC unless it's 96 dpi.
__________________
Why is duck? |
|
|
|
|
|
#4 |
|
SitePoint Wizard
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2002
Location: MI
Posts: 2,535
|
Its all 72dpi for all platforms, I'm not sure what your saying about Power Point, Power Point could careless about the DPI of an image. This is one of those Mac vs. PC rumors that have been around for a while.....
__________________
Golf Outings? OutingCaddy.com Organize - Invite - Create Free website for your golf outing! |
|
|
|
|
|
#5 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Jan 2004
Location: Circling above the vultures...
Posts: 287
|
__________________
www.eagleimagery.co.uk Logo Design • Vector Conversion • Print UK Business Labs Forum - The chemistry in B2B™ |
|
|
|
|
|
#6 |
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
It's not so much that the two platforms have different resolutions for fonts, it's just that they have different default settings for the number of pixels per inch. This setting should ideally depend on the monitor, but the default settings are:
Mac: 72 pixels per inch Windows: 96 pixels per inch (small fonts) or 120 pixels per inch (large fonts). It's up to the graphics driver, or the user, to specify the exact measurement. The "points" measurement for fonts is 72 points per inch. This is the standard, and it has nothing to do with the platform used (a point is a standard unit of measurement equal to 1/72 inches). You may notice that this 72 points per inch matches the 72 pixels per inch used on Mac OS systems by default. What this means is that on a Mac, one pixel is exactly the same as one point by default, whereas on a PC, pixels and points are always different. This is not due to any bugs in Mac OS or Windows, and is the correct behaviour. In my opinion, you should not specify font sizes in points for on-screen use. You should only use points for printed media. On screen, you should use relative/keyword font sizes, or pixels. You do not need to worry about points measurements in graphics for the web, because all browsers use pixels, not points, to determine the size of images. You do need to worry about points only if you're specifying lengths (such as font sizes) using the "pt" measurement in CSS.
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|
|
|
|
|
#7 |
|
The knight who said ni!
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2003
Location: Rockhampton, Australia
Posts: 721
|
If I change my resolution from 1024x768 to 800x600, haven't I changed the dpi I'm displaying? Similarly, if I plug a 21 inch monitor in instead of a 17 inch monitor, without changing any settings, haven't I also changed the dpi?
I never really understtod how those figures were arrived at either, as they are subject to so many variables. |
|
|
|
|
|
#8 | |
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
Quote:
For example, in Windows, go to the Display Properties dialog, the Settings tab, Advanced button, General tab, and see under "DPI setting". Note, however, that some applications are optimised for best performance under the default settings (96 or 120).
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|
|
|
|
|
|
#9 |
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
It's 96 dpi (smaller fonts) on a Mac and 72 dpi on a PC traditionally. However, this isn't an issue very much any more. For a long time Mac browsers have compensated for the difference in screen res. Only NN4.x for Mac is still about and rendering fonts smaller because it doesn't compensate for the difference. But it's 10 years old. So who cares.
Off Topic: No one should be using pixel sizes for fonts anyway.
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent |
|
|
|
|
|
#10 | |
|
The knight who said ni!
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2003
Location: Rockhampton, Australia
Posts: 721
|
Quote:
|
|
|
|
|
|
|
#11 | ||
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
Quote:
Quote:
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
||
|
|
|
|
|
#12 | ||
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
Quote:
Quote:
http://www.w3.org/2003/07/30-font-size G
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent |
||
|
|
|
|
|
#13 | |
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
Quote:
My point was that using px for font sizes is quite valid, and the W3C confirms this: http://www.w3.org/TR/REC-CSS2/fonts....pdef-font-size http://www.w3.org/TR/REC-CSS2/syndat...lue-def-length In fact, "px" is part of the CSS standard (all versions), and can be used anywhere that you can specify any length.
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|
|
|
|
|
|
#14 | ||
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
Quote:
Quote:
G
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent Last edited by greg.harvey; Mar 17, 2004 at 05:59.. Reason: Crisis of confidence... ;) |
||
|
|
|
|
|
#15 | |
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
Ok. I'm not quite getting something here. I've checked your first link and it barely mentions PX as a measurement. I certainly don't understand how it supports your argument. Please could you elaborate? I'm not being facetious... I want to know.
The second link says this about it (so far as I can tell, or have I picked out the wrong paragraph?): Quote:
Whether the user agent should be able to resize pixel sizes is open for debate. I'm not sure what the W3C line is on this, but as far as I'm aware (and I stand ready to be corrected by a demo piece of CSS -- I'm not prepared to trawl through pages of documentation) Internet Explorer does not resize the PX form of dimensioning font sizes. This being the case and IE being the dominant browser by a long way, like it or not, PX is inaccessible. No? Like I say, I'm quite happy to be proven wrong on this as it would make my life a hell of a lot easier, but I'm not convinced I will be... G
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent |
|
|
|
|
|
|
#16 |
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
What more can I say, other than that you need to become more familiar with the CSS spec? There are many different types of length units available. px is one of them. Any length unit may be used for font-size. px is one of them. px is not an absolute length unit. Examples of absolute length units are pt and cm. Although they're valid, in my opinion (and that of the W3C) you should avoid using absolute length units for displaying on screen media. Nothing wrong with px though.
If you need more information, it can all be found in the spec.
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|
|
|
|
|
#17 |
|
Pointiest Petitions
![]() ![]() ![]() ![]() Join Date: Jul 2003
Location: Suburbs of DC (MD)
Posts: 597
|
On the font size issue, I have to say that like greg.harvey, I've eschewed using px for font sizes. I used this wiki http://css-discuss.incutio.com/?page=FontSize
to review font size options. I rely mostly on em. Besides the resize issue with px, I've always just feared that at higher resolutions, the px sized font would be too small. Back to On Topic things: neat! Never knew that about 72/96 dpi... |
|
|
|
|
|
#18 | |
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
Quote:
Off Topic: For anyone who is interested, please also see information on why you really shouldn't use PX values here: http://www.wilk4.com/webdevres/fontcss3.htm And more typography tips from Joe Gillespe, the eminent screen font typographer, here: http://www.wpdfd.com/advanced/ch3_8.htm There's much more info if you use the arrows in the bottom right corner to navigate. And even Joe himself has said before that PX are a no no: http://216.239.59.104/search?q=cache...hl=en&ie=UTF-8 (Forums currently offline, but I'm sure they'll be back soon.) Cheers, G
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent |
|
|
|
|
|
|
#19 | |
|
The knight who said ni!
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2003
Location: Rockhampton, Australia
Posts: 721
|
Allow me to make one observation. You said:
Quote:
Now - I agree that px is not a good method for all the text in your site, but there are times when it's useful, and valid. The W3C does not dissaprove of using px based upon the links provided thus far. |
|
|
|
|
|
|
#20 |
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
If you like, I can split these posts about accessibility into a separate thread. Let me know.
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|
|
|
|
|
#21 | |
|
Drupaler
![]() Join Date: Jul 2002
Location: London, UK
Posts: 3,258
|
Quote:
![]()
__________________
Drupal Development -- Hire me! Drupal Training | Darwin Awards Moderator | Classic Cars SitePoint | Blog | Rent Games Online | Car | Talent |
|
|
|
|
|
|
#22 | |||
|
Test cases complete. 0 fails.
![]() Join Date: Feb 2001
Location: Melbourne Australia
Posts: 6,569
|
Quote:
The CSS spec defines it thus: Quote:
Quote:
So you have 3 options for all lengths in CSS. 1) choose an absolute unit. 2) choose a relative unit. 3) Use percentages (%). Some properties (including font-size) also allow a 4th option: a keyword (ie, 'large', 'small') Now, for displaying a font on screen, your options narrow. If you are avoiding absolute units for display on screen, which you probably should, then that leaves you with relative, percentages or keywords. Percentages are only applicable when the parent item also has a font size, so somewhere or other, you have to have a parent element with a font size that isn't a percentage. This leaves you with keywords or pixels (or, of course, you could also choose not to set font size at all and go with the browser's default). From there onwards, it's personal choice. If you require the font a certain size in pixels to fit your design, use pixels. If the font size can be more flexible, use keywords. Both are quite valid, and both have benefits and drawbacks. For example, the drawback of using keywords is that they are inconsistent across browsers and if the user has set his default font size too large or small, it may break your design. The drawback of using pixels is that the user's default font size settings will not influence the text. It would be wise, then, to use keywords for body text etc which can scale, and pixels for text in controls, menus etc if they are of fixed size. However, it is free for you to decide.
__________________
[mmj] My momentous journey~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Bit Depth Blog · Twitter · Contact me Spuds Jokes Bazaar VCS Inkscape Firefox phpBB |
|||
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 09:22.








[mmj] My momentous journey




Linear Mode
