If you absolutely have to use icon fonts, at least use ligatures instead of a PUA. That lets you fallback to a whole word if the specific font isn't present, or if the user relies on assistive technology like a screen reader.
If you absolutely have to use icon fonts, at least use ligatures instead of a PUA. That lets you fallback to a whole word if the specific font isn't present, or if the user relies on assistive technology like a screen reader.
I use the [1] Unicode symbol semantically on my blog with a custom font at http://eligrey.com/blog/
1. Edit: Hacker News seems to have stripped the character from my message. I am referring to U+1F50D left-pointing magnifying glass.
Is there any reason why they don't? It seems it would indeed be much better.
And what's the point of sticking a handful of icons into a downloadable font rather than just downloading a few images?
Some reasons:
* They are scalable vector images without the download bloat and processing load of rendering them with SVG.
* Raster icons need to closely match the screen DPI or they look awful - eg Retina displays made raster icons look like blocky pixellated afterthoughts.
* They inherit colors, sizes etc from CSS the same way as their surrounding elements.