<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paul Randall &#187; retina</title>
	<atom:link href="https://paulrandall.com/tag/retina/feed/" rel="self" type="application/rss+xml" />
	<link>https://paulrandall.com</link>
	<description>Experimenting for a living.</description>
	<lastBuildDate>Sat, 15 Mar 2025 15:32:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Using SVG Icons</title>
		<link>https://paulrandall.com/2012/03/11/using-svg-icons/</link>
		<comments>https://paulrandall.com/2012/03/11/using-svg-icons/#comments</comments>
		<pubDate>Sun, 11 Mar 2012 19:34:13 +0000</pubDate>
		<dc:creator><![CDATA[Paul]]></dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[websites]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[retina]]></category>
		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://prandall.com/?p=573</guid>
		<description><![CDATA[With high-PPI devices such as the iPhone 4 and the new iPad, great resolution is changing how we think of the pixel. Increased resolution means that traditional pixel-based icons won&#8217;t be able to take advantage of this, so people are looking for vector-based solutions. Because of this, more people are talking about SVG, or Scalable Vector Graphics. These XML-based images [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>With high-PPI devices such as the iPhone 4 and the new <a href="http://www.apple.com/ipad/features/">iPad</a>, great resolution is changing how we think of the pixel. Increased resolution means that traditional pixel-based icons won&#8217;t be able to take advantage of this, so people are looking for vector-based solutions.</p>
<p>Because of this, more people are talking about <a href="http://en.wikipedia.org/wiki/Svg">SVG, or Scalable Vector Graphics</a>. These XML-based images can store vector data, and so can be upscaled. Other options include creating special icon fonts, such as <a href="http://pictos.cc/">Pictos</a>. I prefer the idea of using SVG over font solutions because the font method is just like using <a href="http://en.wikipedia.org/wiki/Wingdings">Wingdings</a>; plus it adds non semantic letters to your code, even if you can hide them.</p>
<p>I was aware of SVG back in around 2006 during my college course. I naively thought at the time that was little point in learning about them, as I couldn&#8217;t see the advantages. If you want to see my first creation 6 years ago &#8211; this was it (if you view the image separately the text should zoom in):</p>
<p><img class="alignnone" title="My first SVG file" src="https://paulrandall.com/experimental/svg/img/welcome.svg" alt="" width="500" height="150" /></p>
<p>So this weekend I decided to go back to my college work and create some SVG by hand. Luckily, for more complex designs, you can use something like <a href="http://inkscape.org/">Inkscape</a> but I thought it would be interesting to hand code the icons I wanted to create.</p>
<p>First I started by drawing some very simple shapes on an 8&#215;8 grid:</p>
<p><img class="alignnone" title="Hand drawn icons on a grid" src="https://p.twimg.com/AnsnDDmCIAERR0S.jpg:large" alt="" width="614" height="461" /></p>
<p>I then created a very simple XML file, and started adding the paths:</p>
<p><img class="alignnone" title="Coding an SVG file by hand" src="https://p.twimg.com/Ans9F4eCQAE_gum.jpg:large" alt="" width="461" height="614" /></p>
<p><em>Note: The M stands for move, the L stands for line and the Z closed the point. That is as far as I got, but suffice to say that more complex icons won&#8217;t be created in this way. Y</em>ou can see the final version here: <a href="https://paulrandall.com/experimental/svg/img/pr-icons.svg">https://paulrandall.com/experimental/svg/img/pr-icons.svg</a></p>
<p>For the next part, I used this post as a tutorial: <a href="http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/">http://coding.smashingmagazine.com/2012/01/16/resolution-independence-with-svg/</a> and the traditional process of displaying a background image. I ended up using an empty span because I found it easier to play around with, but as you can see from David&#8217;s tutorial this doesn&#8217;t have to be the case.</p>
<h2>Conclusion</h2>
<p>Seeing the <a href="http://caniuse.com/#cats=SVG">browser support</a> for SVGs, support is varied, but for progressive designs it is worth considering in your next designs. Do have a play, experiment and look into the new ways of constructing sites, because it is an interesting time to create websites.</p>
<p>See the finished article: <a href="https://paulrandall.com/experimental/svg/">https://paulrandall.com/experimental/svg/</a> (and make sure you upscale/downsize it to see the full effect)</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>https://paulrandall.com/2012/03/11/using-svg-icons/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
