Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Iconfont or svg?
Search
Justin Slack
August 23, 2015
Design
150
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Iconfont or svg?
Lightning talk at CTEDs workshop - august 2015.
Justin Slack
August 23, 2015
Other Decks in Design
See All in Design
Look Dev Meetup #50
baku89
1
510
20260422_Midosuji_Tech
takuyay0ne
2
120
Saving_the_King_-_Storyboard.pdf
terencebasart
0
330
怖くないアクセシビリティ -カウンターカルチャーとしてのアッカン東京-
securecat
1
270
図面資産×AI 眠れる資産を起こす挑戦
aonomasahiro
0
250
分散するデザイン組織をつなぐ デザインミートアップの取り組み/nikkei-tech-talk49
nikkei_engineer_recruiting
1
230
Frontier
rwang05
0
210
空間アプリ開発のフィードバックをCodexにするための抽象的なデザインツールの模索
karad
0
200
AVI 2026 Keynote "Vision-Driven Design"
ishii_mit
0
150
Kouseki | CREATIVE CLASS成果物
yuri9911
0
220
エンジニアでも捗る デザイナー的思考入門(bitA Edit 新ver)
tinykitten
1
550
「惜しいデザイン」 を生み出さないための AIレビューループ
0b1tk
3
4.5k
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
500
The Mindset for Success: Future Career Progression
greggifford
PRO
0
500
So, you think you're a good person
axbom
PRO
2
2.2k
Making Projects Easy
brettharned
120
6.8k
How to train your dragon (web standard)
notwaldorf
97
6.8k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
910
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.6k
A Modern Web Designer's Workflow
chriscoyier
699
190k
Designing for Timeless Needs
cassininazir
1
480
Practical Orchestrator
shlominoach
192
12k
How to Talk to Developers About Accessibility
jct
2
550
Rails Girls Zürich Keynote
gr2m
96
14k
Transcript
Iconfonts versus inline svg
Icon systems • pngs
Icon systems • pngs • png sprites
Icon systems • pngs • png sprites • Weird javascript
to make transparency work in IE6
Icon systems • pngs • png sprites • Weird javascript
to make transparency work in IE6 • Retina problems
Iconfonts • Vectors • Can be created online via apps
such as Icomoon or Fontello
Iconfonts • Can be hosted locally
Iconfonts • Can be inlined in CSS
Iconfonts • Multiple ways to display based on how the
font is encoded
Iconfonts • Treated as text by browsers (good and bad)
Iconfonts • You can control the size (via font-size), color,
shadows, rotation, etc. via CSS.
SVG • Can be displayed through the use of CSS
Backgrounds, <object> tags, <img> tags, or inlined directly into your HTML
SVG • Inline SVG is right in the document. If
the browser supports it, it displays it.
<svg class="iconsvg"> <g> <polygon fill="#ad3429" points="217.14,14.856 169.039,14.856 235.993,147.185 260.045,99.649"></polygon> <polygon
fill="#ad3429" points="131.014,184.747 63.991,52.276 39.937,99.813 82.908,184.747"></polygon> <polygon fill="#f2723d" points="216.984,14.856 168.882,14.856 82.927,184.747 131.029,184.747"></polygon> <polygon fill="#f2723d" points="169.039,184.747 217.14,184.747 260.045,99.945 235.993,52.414"></polygon> <polygon fill="#f2723d" points="131.014,14.856 82.908,14.856 39.937,99.784 63.991,147.319"></polygon> </g> </svg>
SVG • semantics of <svg> suit icons which are essentially
images
SVG • accessible via <title>, <desc> and <aria-labelledby>
SVG • Can use build tools
Iconfonts - the bad • May not show up (private
unicode area)
Iconfonts - the bad • Very hard to align as
they depend on pseudo-elements (usually ::before), and things like line-height, vertical-align, letter-spacing, word-spacing and kerning.
Iconfonts - the bad • Cross origin resource
Iconfonts - the bad • Fails to load
Iconfonts - the bad • Chrome bug
Iconfonts - the bad • Android bugs
Iconfonts - the bad • No @font-face support
Iconfonts - the bad • One colour
Iconfonts - the bad • Dyslexia
SVG - the bad • Support. Fallbacks very hard.
Conclusion • Icon font if you have limited number and
low support requirements
Conclusion • Icon font if you have limited number and
low support requirements • svg for more versatility and large icon set
None