{"id":2019,"date":"2009-11-27T14:43:43","date_gmt":"2009-11-27T13:43:43","guid":{"rendered":"http:\/\/www.bitvolution.com\/?p=555"},"modified":"2009-11-27T14:43:43","modified_gmt":"2009-11-27T13:43:43","slug":"why-does-some-website-text-look-bad-on-windows","status":"publish","type":"post","link":"https:\/\/www.tomfotherby.com\/blog\/index.php\/2009\/11\/why-does-some-website-text-look-bad-on-windows\/","title":{"rendered":"Why does some website text look bad on Windows?"},"content":{"rendered":"<p>Look at the difference between these two 50px headers that use the Georgia font:<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/www.tomfotherby.com\/blog\/wp-content\/uploads\/2009\/11\/fontComparison_Georgia_win_ubuntu.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/www.tomfotherby.com\/blog\/wp-content\/uploads\/2009\/11\/fontComparison_Georgia_win_ubuntu.png?resize=620%2C125&#038;ssl=1\" alt=\"Windows\/Ubuntu font comparison - Georgia\" width=\"620\" height=\"125\" class=\"alignnone size-full wp-image-560\" \/><\/a><\/p>\n<p>The top one is from IE8 on Windows Vista, whereas the bottom one is from Firefox 3.0.15 on Ubuntu 9.04. On Windows, the text is clearly less pleasant on the eye? It is has jagged edges, has a pixel or two cut off the end of the &#8216;s&#8217; and is 17 pixels less wide.<\/p>\n<p>This is the styling code:<\/p>\n<pre class=\"brush: css; title: ; notranslate\" title=\"\">\n#logo h1 {\nfont-family:Georgia, Arial, sans-serif;\nfont-size:50px;\nfont-weight:normal;\nletter-spacing:-0.05em;\nline-height:normal;\n}\n<\/pre>\n<p><!--more--><\/p>\n<h3>Problem 1 &#8211; Each Operating system ships with a different set of default fonts<\/h3>\n<p>The <em>Georgia<\/em> font is one of the &#8220;<a href=\"http:\/\/en.wikipedia.org\/wiki\/Core_fonts_for_the_Web\">core web fonts<\/a>&#8221; that everyone has decided should be standard on the web. However, the majority of GNU\/Linux distributions (including Ubuntu) don&#8217;t ship with Microsoft&#8217;s TrueType core fonts installed (and so don&#8217;t have Verdana or Georgia available). Installing them is the quickest way to make web page text render similarly to what people using Windows will see. In Ubuntu, do:<br \/>\n<span class=\"iconTerminal\">sudo apt-get install msttcorefonts<\/span><br \/>\nAccording to a <a href=\"http:\/\/ubuntuforums.org\/showthread.php?t=585292\">survey on the Ubuntu Forums<\/a>, approximately 75% of Ubuntu users have <em>mscorefonts<\/em> installed. It is one of the first things I do on a fresh Ubuntu install &#8211; however, even with <em>mscorefonts<\/em> installed the difference shown above exists.<\/p>\n<h3>Problem 2 &#8211; Each Operating system renders fonts in it&#8217;s own way<\/h3>\n<p>There is a font rendering standard that everyone has agreed to follow called <a href=\"http:\/\/en.wikipedia.org\/wiki\/TrueType\">TrueType<\/a>. If everyone has agreed on a <strong>STANDARD<\/strong>, why are there any differences in the way a font looks?<\/p>\n<p>It is due to different ways of implementing the standard (i.e. different subpixel rendering algorithms):<\/p>\n<ul>\n<li>Microsoft Windows (as of Vista) uses a rending technology called <a href=\"http:\/\/en.wikipedia.org\/wiki\/ClearType\">ClearType<\/a>. The philosopy behind ClearType is to prevent blur and improve readability, even at the cost of not being true to the typeface. Microsoft believes that the shape of each letter should conform to pixel boundaries.<\/li>\n<li>Apple uses <a href=\"http:\/\/en.wikipedia.org\/wiki\/Apple_Advanced_Typography\">AAT (Apple Advanced Typography)<\/a>. The philosophy behind ATT is to preserve the design of the typeface as much as possible, even at the cost of a little bit of blurriness.<\/li>\n<li>GNU\/Linux uses <a href=\"http:\/\/freetype.sourceforge.net\/\">Freetype<\/a>. Ubuntu enables the subpixel rendering option (i.e. anti-aliasing) in the freetype package but many distributions ship with it disabled due to patent issues.<\/li>\n<\/ul>\n<h3>The Solution<\/h3>\n<p>There is no good solution but there&#8217;s a few things to try:<\/p>\n<ol>\n<li>Ignore the font difference &#8211; work on something important \ud83d\ude09<\/li>\n<li>Large serif type faces suffer the most &#8211; perhaps you can change to using a font which suffers less?<\/li>\n<li>Take a screenshot of the text in the browser which is displaying your text nicely and put the image on the webpage instead of the raw text. This has negative accessibility and SEO implications.<\/li>\n<li>Try <a href=\"http:\/\/www.mikeindustries.com\/blog\/sifr\/\">SIFR<\/a> or <a href=\"http:\/\/wiki.github.com\/sorccu\/cufon\/about\">cufon<\/a> &#8211; I&#8217;ve never used them but they seem similar to using a image except they can cope with large amounts of text and solve the accessibility issues.<\/li>\n<li>Try <a href=\"http:\/\/facelift.mawhorter.net\/\">FLIR<\/a>, a server-side PHP script that dynamically generates images of text in the font-face of your choosing.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Look at the difference between these two 50px headers that use the Georgia font: The top one is from IE8 on Windows Vista, whereas the bottom one is from Firefox 3.0.15 on Ubuntu 9.04. On Windows, the text is clearly less pleasant on the eye? It is has jagged edges, has a pixel or two [&hellip;]<\/p>\n","protected":false},"author":52,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[82],"tags":[85,77,26,84],"class_list":["post-2019","post","type-post","status-publish","format-standard","hentry","category-web-design","tag-css","tag-fonts","tag-ubuntu","tag-webdesign"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/52"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=2019"}],"version-history":[{"count":0,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/2019\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=2019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=2019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tomfotherby.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=2019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}