/ Published in: CSS
The find and replace regular expressions convert from Font Squirrel's generated @font-face.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Find: src: url\('(.*?)'\); src: local\('☺'\), url\('(.*?)'\) format\('woff'\), url\('(.*?)'\) format\('truetype'\), url\('(.*?)'\) format\('svg'\); Replace: src: url('$1#') format('embedded-opentype'), url('$2') format('woff'), url('$3') format('truetype'), url('$4') format('svg') ;
URL: http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax