{"id":275,"date":"2008-02-28T11:19:31","date_gmt":"2008-02-28T10:19:31","guid":{"rendered":"http:\/\/www.nivas.hr\/blog\/2008\/02\/28\/browser-font-rendering-and-antialiasing-windows-vs-mac\/"},"modified":"2008-02-28T11:22:59","modified_gmt":"2008-02-28T10:22:59","slug":"browser-font-rendering-and-antialiasing-windows-vs-mac","status":"publish","type":"post","link":"https:\/\/www.nivas.hr\/blog\/2008\/02\/28\/browser-font-rendering-and-antialiasing-windows-vs-mac\/","title":{"rendered":"Browser font rendering and antialiasing &#8211; Windows vs. Mac"},"content":{"rendered":"<p>This issue has been going on my nerves for quite some time, and i finally decided to write a coherent post about it in order to educate mostly Mac Designers and Developers, but to clarify things for the Windows users as well.<\/p>\n<p>For no other reason except my own laziness to reproduce this on my own, i will use as example <a href=\"http:\/\/simplebits.com\/\">Simplebits.com<\/a> website, home of one of the <a href=\"http:\/\/simplebits.com\/about\/\">nice people<\/a> making <a href=\"http:\/\/simplebits.com\/work\/\">really nice things<\/a>.<\/p>\n<p>Lets get this show on the road, shall we?<\/p>\n<p>First, the basic statistics; at this moment Mac covers less than 5% of internet&#8217;s population. 90% is dominated by Windows machines, most of them (73%) running Windows XP. The rest is Linux and some freaky systems with too complicated names.<\/p>\n<p>With that in mind, lets see how my browser renders this beautiful Simplebits site. Simplebits uses Helvetica as primary font, degrading to Arial if client&#8217;s browser cannot render Helvetica. As a reminder, Macs come with Helvetica installed by default &#8211; all Macs have it. Windows do not have Helvetica installed by default!<\/p>\n<p><em>Simplebits CSS section:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/css1.gif\" alt=\"\" \/><\/p>\n<p>However, i, as any other designer, have Helvetica installed, so by browser will use that vector data and attempt to render the screen as follows:<\/p>\n<p><em>Simplebits as i see it:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/non-aa-1.gif\" alt=\"\" \/><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/non-aa-2.gif\" alt=\"\" \/><\/p>\n<p>From this we clearly see what is wrong. Font is pixelated, kerning is screwed, and small fonts are unreadable.<\/p>\n<p>If i use Firebug to remove Helvetica from CSS, leaving just Arial, things quickly get really good:<\/p>\n<p><em>Firebug edited CSS:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/css-arial.gif\" alt=\"\" \/><\/p>\n<p><em>Simplebits in Arial:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/non-aa-arial-1.gif\" alt=\"\" \/><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/non-aa-arial-2.gif\" alt=\"\" \/><\/p>\n<p>Now, for some explanation.<\/p>\n<p>Windows XP by default uses &#8220;Standard&#8221; method for rendering fonts, meaning that only fonts of 16 pixels size and up will be anti-aliased, smaller than that will be left pixelated. I have Helvetica installed, so my browser will not jump to Arial, and will attempt to render Helvetica in small pixel size. Helvetica was never designed (of course) to be rendered on screen pixels and therefore it is impossible for it to look good under this conditions. Mac browser fonts get anti-aliased by default, and i am not even sure if you can turn it off.<\/p>\n<p><em>Windows default factory settings:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/standard.gif\" alt=\"\" \/><\/p>\n<p><em>Cleartype turned on:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/cleartype.gif\" alt=\"\" \/><\/p>\n<p>If i turn the Cleartype rendering on, but remember &#8211; this is the feature that almost noone uses as it is hard as hell to find it buried deep into menus and submenus, then the Helvetica gets rendered with anti-aliasing, looking cuter than ever.<\/p>\n<p><em>Simplebits with anti-aliased Helvetica:<\/em><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/clear-01.gif\" alt=\"\" \/><br \/>\n<img src=\"http:\/\/www.nivas.hr\/pub\/blog-images-aa\/clear-02.gif\" alt=\"\" \/><\/p>\n<p>In defense of Mac, not many people on Windows have Helvetica installed, meaning that this problem hits mostly designers with Helve installed whose browsers will not jump to second-on-the-list font. Microsoft&#8217;s safe font list can be <a href=\"http:\/\/www.microsoft.com\/typography\/fonts\/default.aspx\">found here<\/a>, and i would suggest to cross-reference that list with Mac safe list when designing sites in order to achieve real Bulletproof design.<\/p>\n<p><strong>Please keep in mind that this post is for educational purposes only. Simplebits site was used only because it was convenient and easier to use existing material.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This issue has been going on my nerves for quite some time, and i finally decided to write a coherent post about it in order to educate mostly Mac Designers and Developers, but to clarify things for the Windows users as well. For no other reason except my own laziness to reproduce this on my&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/275"}],"collection":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":0,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nivas.hr\/blog\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}