CSS Custom Font File


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

Reference a custom font file for use within a stylesheet


Copy this code and paste it in your HTML
  1. @font-face {
  2. font-family: custom-font;
  3. src: url('custom-font.ttf');
  4. }
  5.  
  6. /* Example */
  7. .p {
  8. font-family: custom_font;
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.