Return to Snippet

Revision: 40676
at February 5, 2011 02:22 by ertbor


Initial Code
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') ;

Initial URL
http://www.fontspring.com/blog/the-new-bulletproof-font-face-syntax

Initial Description
The find and replace regular expressions convert from Font Squirrel's generated @font-face.

Initial Title
Bulletproof @Font-Face Syntax

Initial Tags
css

Initial Language
CSS