Guest User

Untitled

a guest
Oct 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. <h1 style="font-family:myfont;
  2. src:('http://example.com/font/myfont.tff')">test</h1>
  3.  
  4. <style>
  5. @font-face {
  6. font-family: 'PT Sans';
  7. font-style: normal;
  8. font-weight: normal;
  9. src: local('PT Sans'), local('PTSans-Regular'),
  10. url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAHowABMAAAAA+OAA) format('woff');
  11. }
  12. @font-face {
  13. font-family: 'PT Serif';
  14. font-style: normal;
  15. font-weight: normal;
  16. src: local('PT Serif'), local('PTSerif-Regular'),
  17. url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAIQYABMAAAAA/MAA) format('woff');
  18. }
  19. </style>
  20.  
  21. <body>
  22. <div>
  23. <style scoped>
  24. /* your @font-face and other CSS rules go here */
  25. </style>
  26. <!-- your document body proper goes here -->
  27. </div>
  28. </body>
  29.  
  30. @font-face {
  31. font-family: 'RalewayThin';
  32. src: url('fonts/raleway_thin-webfont.eot');
  33. src: url('fonts/raleway_thin-webfont.eot?#iefix') format('embedded-opentype'),
  34. url('fonts/raleway_thin-webfont.woff') format('woff'),
  35. url('fonts/raleway_thin-webfont.ttf') format('truetype'),
  36. url('fonts/raleway_thin-webfont.svg#RalewayThin') format('svg');
  37. font-weight: normal;
  38. font-style: normal;
  39.  
  40. <h1 style="font-family:RalewayThin,Helvetica, sans-serif;">
Add Comment
Please, Sign In to add comment