@font-face TextMate Snippet

/ Published in: CSS
Save to your folder(s)

I never, ever remember the @font-face declaration, so I made a snippet. This makes it easy to quickly include a webfont in your source.

Copy this code and paste it in your HTML
  1. @font-face {
  2. font-family: '${1:FontName}';
  3. src: url('${1:FontName}.eot');
  4. src: local('${1:FontName}'),
  5. url('${1:FontName}.ttf') format('truetype'),
  6. url('${1:FontName}.svg#font') format('svg');
  7. }

URL: http://67ideas.com

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.