Cross-Platform Font Uniformity

Cross-Platform Font Uniformity

The fact that HTML fonts display smaller on Macintosh monitors than on PC monitors can cause problems for Web site designers. The cause of the problem is Macintosh monitors default to 72 dpi, while PC monitors default to 96 dpi. You can’t do anything to fix the cause, but you can control the effect by using a different style sheet for Mac and PC. Start by detecting the platform and writing in the correct style sheet reference:


In the style sheet declarations, the Macintosh fonts should be two points larger than the PC fonts. For example, if in pc_style.css you have:

 .title {  font-family: Arial; font-size: 10pt; line-height: 11pt }

The equivalent line in mac_style.css would be:

 .title {  font-family: Arial; font-size: 12pt; line-height: 14pt }
See also  Monetize TikTok For Your Business

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist