{"id":68,"date":"2012-11-19T14:45:52","date_gmt":"2012-11-19T14:45:52","guid":{"rendered":"http:\/\/blogs.iriss.org.uk\/viewsource\/?p=68"},"modified":"2019-06-24T11:01:22","modified_gmt":"2019-06-24T10:01:22","slug":"resolution-independent-icons-with-custom-icon-fonts","status":"publish","type":"post","link":"https:\/\/blogs.iriss.org.uk\/viewsource\/2012\/11\/19\/resolution-independent-icons-with-custom-icon-fonts\/","title":{"rendered":"Resolution-independent icons with custom icon fonts"},"content":{"rendered":"
As a follow-on from my recent post on responsive web design (RWD)<\/a>, I thought it might be useful to take a look at another one of the challenges arising from the new generation of computing devices, and at one particular solution we\u2019ve arrived at for our own projects.<\/p>\n Hi-DPI is a generic term used to describe the increased-resolution displays featured in many modern mobile devices and a in small number of very recent computers<\/a>. Some manufacturers have there own terms for such screens: most prominently Apple Inc.<\/a> use the trademarked name Retina<\/em> to describe their own hi-DPI displays. At Iriss, we\u2019re of the belief that the products we build should represent the best possible quality that we\u2019re capable of producing. While it might be tempting to put off catering for hi-DPI displays until they\u2019ve become the norm rather than the exception, we prefer to ensure that our sites have the highest possible quality of fit and finish for all<\/em> our users. We also believe that clearer text and graphics aid usability, and further, that catering for hi-DPI displays now is the most future-friendly approach (after all, the number of these displays in circulation is only going in one direction, and it isn\u2019t down).<\/p>\n There are many different kinds of graphics on the web (photographs, background images, user-interface elements like buttons and icons, etc), and many different formats that these can be rendered in. Addressing the issues and possible solutions around every one of these is well beyond the scope of this article, so today we\u2019re going to look at just one type of graphic that features in nearly every modern web site, and at one particular solution we\u2019ve arrived at that provides pin-sharp images irrespective of resolution.<\/p>\nThe challenge of hi-DPI<\/h1>\n
\nThe term hi-DPI is a contraction of \u2018high dots per inch<\/a>\u2019 and refers to the density of pixels found in a one inch line on the given display. To be considered \u2018hi\u2019, the display would typically have a density greater than 160dpi \u2013 often much<\/em> greater.
\n<\/a>
\nThe popularity of these displays presents a significant challenge to web designers as, ever since the web first gained support for images, we\u2019ve optimised all of our graphics down to the standard resolution for traditional desktop PCs \u2013 a lowly 72dpi. Meaning that, although they look ok on old-school displays, these graphics look pretty nasty when viewed on modern devices.<\/p>\nWhy should I care?<\/h2>\n
Designing for hi-DPI<\/h1>\n