I recently attempted to move to using a font via @font-face for my site’s social icons rather than using images but I am having rather mixed results, especially on mobile devices. Are these known issues or is there anything I can do to improve matters?
Windows Phone 8 seems to have issues with it. That’s the one I have been able to confirm, then I have some reports I am waiting for people to get back to me on what OS and browser they are using.
IIRC then mobile needs to use the svg font but you may be over-riding it with the duplicate ttf rule at the end (although I don’t think this is the issue).
@font-face is always a pain and I prefer to avoid it altogether where possible.
This was how the @font-face rule was setup on the page for the Mono Social Icons Font. It is the first time I am using @font-face, so I am not familiar with how to set up the rule myself.
How do you generally choose to approach social icons? Surely a font is better than images?
Ah well, it seems impossible to get @font-face (or maybe it is just with this particular icon font) to play nice across browser. Got a bunch of reports of it not working on IE 10 as well.
Stripping it out for now and going back to scratching my head over how to do this in a nice, clean way.
Icon fonts have sort of faded away as quickly as they appeared. The move seems to be towards svg, which has been around for ages but has only just started to take off.
It allows you to present “images”/shapes etc. as scalable vectors, which means that they are clean and crisp at any size, and they can also be very lightweight.
Thanks, will look into that. Of course, there’d still be the issue that TechnoBear pointed out, that most social platforms don’t allow you to make your own icons. I suppose it is possible they offer svg versions.
Just from a quick check, both Facebook and Twitter supply their logos in vector format (.ai or .eps) which you can open in Illustrator and save as SVG. So all good. But anyhow, they just don’t want you to modify the look of the logo. I don’t think it matters what format it’s in. That wouldn’t make sense.