Make @font-face Work on Android Devices and Apple Devices
Posted on January 11, 2013 | 1 Comment
If you use FontSquirrel to generate @font-face kits you may have noticed that they abandoned the Smiley method of generating CSS in favor of newer methods like FontSpring or Mo Bulletproofer. This is great because CSS generated by FontSquirrel will now successfully render fonts in browsers on Android devices.
What if you want to update existing declarations to be Android-friendly? Instead of regenerating the entire @font-face kit, you can simply update your @font-face declarations manually to support Android devices. Here’s a code snippet to get you started:
@font-face { font-family: 'MyFont'; src: url('MyFont.eot?') format('eot'), url('MyFont.woff') format('woff'), url('MyFont.ttf') format('truetype'), url('MyFont.svg#webfontwTBKaDwa') format('svg'); font-weight: normal; font-style: normal; }
Tags: Android Devices | Apple Devices | Webfonts
Comments
One Response to “Make @font-face Work on Android Devices and Apple Devices”
Leave a Reply
You must be logged in to post a comment.
April 2nd, 2013 @ 4:17 pm
Make @font-face Work on Android Devices and Apple Devices | Relax Breath of Solution….