Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h1 style="font-family:myfont;
- src:('http://example.com/font/myfont.tff')">test</h1>
- <style>
- @font-face {
- font-family: 'PT Sans';
- font-style: normal;
- font-weight: normal;
- src: local('PT Sans'), local('PTSans-Regular'),
- url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAHowABMAAAAA+OAA) format('woff');
- }
- @font-face {
- font-family: 'PT Serif';
- font-style: normal;
- font-weight: normal;
- src: local('PT Serif'), local('PTSerif-Regular'),
- url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAAIQYABMAAAAA/MAA) format('woff');
- }
- </style>
- <body>
- <div>
- <style scoped>
- /* your @font-face and other CSS rules go here */
- </style>
- <!-- your document body proper goes here -->
- </div>
- </body>
- @font-face {
- font-family: 'RalewayThin';
- src: url('fonts/raleway_thin-webfont.eot');
- src: url('fonts/raleway_thin-webfont.eot?#iefix') format('embedded-opentype'),
- url('fonts/raleway_thin-webfont.woff') format('woff'),
- url('fonts/raleway_thin-webfont.ttf') format('truetype'),
- url('fonts/raleway_thin-webfont.svg#RalewayThin') format('svg');
- font-weight: normal;
- font-style: normal;
- <h1 style="font-family:RalewayThin,Helvetica, sans-serif;">
Add Comment
Please, Sign In to add comment